RenderMetricsProgramMonitor class final

Program interceptor that forwards render-monitor aggregates into overlays.

This wraps ProgramRenderMonitor and publishes formatted key/value entries through RenderMetricsInjector, so widget apps can surface runtime render activity without duplicating monitor plumbing in each example or host app.

Inheritance

Constructors

RenderMetricsProgramMonitor({String prefix = 'Render', bool replace = true, bool clearOnStop = true})
Creates a monitor bridge for widget overlays.

Properties

clearOnStop bool
Whether to clear injected custom metrics when the program stops.
final
hashCode int
The hash code for this object.
no setterinherited
prefix String
Entry prefix used when formatting overlay metrics.
final
replace bool
Whether each render update should replace existing custom metric entries.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats ProgramRenderStats
Current aggregated render statistics.
no setter
wantsNativeFrames bool
Whether this interceptor needs native cell snapshots after each render.
no setteroverride

Methods

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.
override
reset() → void
Clears the internal monitor state.
toString() String
A string representation of this object.
inherited

Operators

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