ProgramRenderCapture class final

Bundles deterministic snapshot recording with aggregate render monitoring.

This is useful for tests and tooling that want both frame-by-frame evidence and a compact summary without wiring two interceptors manually.

Inheritance

Constructors

ProgramRenderCapture()

Properties

hashCode → int
The hash code for this object.
no setterinherited
lastSnapshot → ProgramRenderSnapshot?
Most recently captured snapshot, if any.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snapshots → List<ProgramRenderSnapshot>
Recorded snapshots in capture order.
no setter
stats → ProgramRenderStats
Current aggregated statistics.
no setter
wantsNativeFrames → bool
Whether this interceptor needs native cell snapshots after each render.
no setteroverride

Methods

clear() → void
Removes all recorded snapshots and resets aggregated monitor state.
lastSnapshotSummary({int maxFrameLines = 3}) → ProgramRenderSnapshotSummary?
Compact summary of the last captured snapshot, if any.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onProcessed(Msg msg, Duration elapsed) → void
Called after a message has been processed.
inherited
onRendered({required int renderGeneration, required Object view, required DegradationLevel degradationLevel, required Duration renderDuration, int? width, int? height, TerminalNativeFrame? nativeFrame, TerminalNativeDeltaFrame? nativeDelta, TerminalNativeCellDeltaFrame? nativeCellDelta, List<TerminalNativeSpanDelta>? nativeSpanDelta}) → void
Called after a render has completed.
override
onSend(Msg msg) → Msg?
Called for each message before it is queued.
inherited
onStart(void send(Msg msg)) → void
Called once after program initialization.
inherited
onStop() → void
Called during program cleanup.
inherited
payload({String prefix = 'Render', int maxFrameLines = 3}) → ProgramRenderCapturePayload
Builds a serialization-friendly payload for the whole capture state.
report({String prefix = 'Render', int maxFrameLines = 3}) → ProgramRenderCaptureReport
Builds a structured summary of the latest capture state.
snapshotsSince(int generation) → List<ProgramRenderSnapshot>
Returns snapshots whose render generation is greater than generation.
toJson({String prefix = 'Render', int maxFrameLines = 3}) → Map<String, Object?>
Builds a serialization-friendly payload for the whole capture state.
toMetricEntries({String prefix = 'Render'}) → Map<String, String>
Formats aggregate render metrics for diagnostics or overlays.
toReportLines({String prefix = 'Render', int maxFrameLines = 3}) → List<String>
Builds a compact text report combining snapshot and aggregate state.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited