Uses of Record Class
cs1302.tracer.trace.ExecutionSnapshot
Packages that use ExecutionSnapshot
-
Uses of ExecutionSnapshot in cs1302.tracer.execution
Methods in cs1302.tracer.execution that return types with arguments of type ExecutionSnapshotModifier and TypeMethodDescriptionTraceSession.snapshots()Returns a copy of committed snapshots for serialization.Methods in cs1302.tracer.execution with parameters of type ExecutionSnapshotModifier and TypeMethodDescriptionvoidTraceSession.commit(ExecutionSnapshot snapshot) Commits a completed snapshot, retaining only the latest when requested. -
Uses of ExecutionSnapshot in cs1302.tracer.serialize
Methods in cs1302.tracer.serialize with parameters of type ExecutionSnapshotModifier and TypeMethodDescriptionModernTraceSerializer.createStep(ExecutionSnapshot snapshot, int stepNumber, boolean isMultiFile) Converts an individualExecutionSnapshotinto aStep.ModernTraceSerializer.createTrace(String javaSource, ExecutionSnapshot snapshot) Creates a modern trace for a single execution snapshot.ModernTraceSerializer.createTrace(String javaSource, String stdin, ExecutionSnapshot snapshot) Creates a modern trace for a single snapshot with standard input.PyTutorSerializer.createTrace(String javaSource, ExecutionSnapshot snapshot) Create aPyTutorTracemodel representing the given snapshot.PyTutorSerializer.createTrace(String javaSource, String stdin, ExecutionSnapshot snapshot) Create aPyTutorTracemodel representing the given snapshot and standard input.PyTutorSerializer.createTrace(String javaSource, String stdin, ExecutionSnapshot snapshot, SourceMetadata metadata) Create a snapshot trace using source metadata shared by one breakpoint output.PyTutorSerializer.createTraceStep(ExecutionSnapshot snapshot) Create aTraceStepmodel representing the given snapshot.PyTutorSerializer.createTraceStep(ExecutionSnapshot snapshot, boolean isMultiFile) Create aTraceStepmodel representing the given snapshot with multi-file setting.PyTutorSerializer.serialize(String javaSource, ExecutionSnapshot snapshot) Serialize an execution snapshot into the OnlinePythonTutor JSON trace string.PyTutorSerializer.serialize(String javaSource, ExecutionSnapshot snapshot, boolean pretty) Serialize an execution snapshot into the OnlinePythonTutor JSON trace string.PyTutorSerializer.serialize(String javaSource, String stdin, ExecutionSnapshot snapshot, boolean pretty) Serialize an execution snapshot into the OnlinePythonTutor JSON trace string with stdin.Method parameters in cs1302.tracer.serialize with type arguments of type ExecutionSnapshotModifier and TypeMethodDescriptionModernTraceSerializer.createTrace(String javaSource, String stdin, List<ExecutionSnapshot> snapshots) Creates a modern trace for a chronological list of snapshots with standard input.ModernTraceSerializer.createTrace(String javaSource, List<ExecutionSnapshot> snapshots) Creates a modern trace for a chronological list of snapshots.PyTutorSerializer.createTrace(String javaSource, String stdin, List<ExecutionSnapshot> snapshots) Create aPyTutorTracemodel representing a chronological sequence of snapshots and standard input.PyTutorSerializer.createTrace(String javaSource, List<ExecutionSnapshot> snapshots) Create aPyTutorTracemodel representing a chronological sequence of snapshots. -
Uses of ExecutionSnapshot in cs1302.tracer.trace
Methods in cs1302.tracer.trace that return ExecutionSnapshotModifier and TypeMethodDescriptionExecutionSnapshot.materializeOutput()Materializes the output slices of this snapshot into self-contained buffers.static ExecutionSnapshotDebugTraceHelper.trace(CompilationHelper.CompilationResult compilationResult, com.github.javaparser.ast.CompilationUnit parsedSource) Take a snapshot of a program's execution state just before the main method returns.static ExecutionSnapshotDebugTraceHelper.trace(CompilationHelper.CompilationResult compilationResult, com.github.javaparser.ast.CompilationUnit parsedSource, String stdin) Take a snapshot of a program's execution state just before the main method returns with stdin.static ExecutionSnapshotDebugTraceHelper.trace(CompilationHelper.CompilationResult compilationResult, List<com.github.javaparser.ast.CompilationUnit> parsedSources) Take a snapshot of a program's execution state just before the main method returns.static ExecutionSnapshotDebugTraceHelper.trace(CompilationHelper.CompilationResult compilationResult, List<com.github.javaparser.ast.CompilationUnit> parsedSources, String stdin) Take a snapshot of a program's execution state just before the main method returns with stdin.ExecutionSnapshot.withOutput(OutputSlice stdout, OutputSlice stderr) Copies this snapshot with updated output, preserving all execution metadata.Methods in cs1302.tracer.trace that return types with arguments of type ExecutionSnapshotModifier and TypeMethodDescriptionstatic Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.trace(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, com.github.javaparser.ast.CompilationUnit parsedSource) Take snapshots of a program's execution state at the given breakpoints.static Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.trace(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, com.github.javaparser.ast.CompilationUnit parsedSource, String stdin) Take snapshots of a program's execution state with stdin using a single parsed source.static Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.trace(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, List<com.github.javaparser.ast.CompilationUnit> parsedSources) Take snapshots of a program's execution state using multiple parsed source files.static Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.trace(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, List<com.github.javaparser.ast.CompilationUnit> parsedSources, String stdin) Take snapshots of a program's execution state with stdin using multiple parsed source files.static List<ExecutionSnapshot> DebugTraceHelper.traceChronological(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, com.github.javaparser.ast.CompilationUnit parsedSource, boolean includeMainExit) Run a program under JDI and capture all snapshots in chronological order.static List<ExecutionSnapshot> DebugTraceHelper.traceChronological(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, com.github.javaparser.ast.CompilationUnit parsedSource, boolean includeMainExit, String stdin) Run a program under JDI and capture all snapshots in chronological order with stdin.static List<ExecutionSnapshot> DebugTraceHelper.traceChronological(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, List<com.github.javaparser.ast.CompilationUnit> parsedSources, boolean includeMainExit) Run a program under JDI and capture all snapshots in chronological order.static List<ExecutionSnapshot> DebugTraceHelper.traceChronological(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, List<com.github.javaparser.ast.CompilationUnit> parsedSources, boolean includeMainExit, String stdin) Run a program under JDI and capture all snapshots in chronological order with stdin.static List<ExecutionSnapshot> DebugTraceHelper.traceChronologicalWithSpecs(CompilationHelper.CompilationResult compilationResult, Collection<BreakpointSpec> specs, List<com.github.javaparser.ast.CompilationUnit> parsedSources, boolean includeMainExit, String stdin) Run a program under JDI and capture snapshots chronologically with BreakpointSpecs.PersistentGuestSession.traceChronologicalWithSpecs(CompilationHelper.CompilationResult cr, Collection<BreakpointSpec> specs, List<com.github.javaparser.ast.CompilationUnit> parsedSources, boolean includeMainExit, String stdin) Executes a trace job collecting chronological snapshots with optional main exit snapshot.PersistentGuestSession.traceChronologicalWithSpecs(CompilationHelper.CompilationResult cr, Collection<BreakpointSpec> specs, List<com.github.javaparser.ast.CompilationUnit> parsedSources, String stdin) Executes a trace job collecting chronological snapshots at specified breakpoints.static Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.traceLatest(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, List<com.github.javaparser.ast.CompilationUnit> parsedSources) Captures only the latest state per selected line for non-accumulating CLI output.static Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.traceLatest(CompilationHelper.CompilationResult compilationResult, Collection<Integer> breakPoints, List<com.github.javaparser.ast.CompilationUnit> parsedSources, String stdin) Captures only the latest state per selected line with stdin.static Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.traceLatestWithSpecs(CompilationHelper.CompilationResult compilationResult, Collection<BreakpointSpec> specs, List<com.github.javaparser.ast.CompilationUnit> parsedSources) Captures only the latest state per selected breakpoint specification.static Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.traceLatestWithSpecs(CompilationHelper.CompilationResult compilationResult, Collection<BreakpointSpec> specs, List<com.github.javaparser.ast.CompilationUnit> parsedSources, String stdin) Captures only the latest state per selected breakpoint specification with stdin.static Map<Integer, List<ExecutionSnapshot>> DebugTraceHelper.traceWithSpecs(CompilationHelper.CompilationResult compilationResult, Collection<BreakpointSpec> specs, List<com.github.javaparser.ast.CompilationUnit> parsedSources, String stdin) Take snapshots of a program's execution state with stdin using breakpoint specifications.PersistentGuestSession.traceWithSpecs(CompilationHelper.CompilationResult cr, Collection<BreakpointSpec> specs, List<com.github.javaparser.ast.CompilationUnit> parsedSources, String stdin, boolean accumulate) Executes a trace job and returns snapshots mapped by line number.Methods in cs1302.tracer.trace with parameters of type ExecutionSnapshotModifier and TypeMethodDescriptionvoidPersistentGuestSession.SnapshotSink.accept(int line, ExecutionSnapshot snapshot) Consumes an execution snapshot recorded at a given line number.static voidValueTraversal.validate(ExecutionSnapshot snapshot) Checks every value root before snapshot accounting or conversion.