ProgramRenderStats class final

Aggregated render activity across one program run.

Constructors

ProgramRenderStats({required int totalRenders, required int changedRenders, required int totalChangedCells, required int totalChangedSpans, required int maxDirtyLines, required int maxChangedCells, required int maxChangedSpans, required Duration totalRenderDuration, int? lastRenderGeneration, DegradationLevel? lastDegradationLevel, ProgramRenderChangeSummary? lastChangeSummary})
Creates render stats.
const
ProgramRenderStats.fromJson(Map<Object?, Object?> json)
Rebuilds aggregate render stats from serialized JSON data.
factory

Properties

averageRenderDuration → Duration
Average render duration across all observed renders.
no setter
changedRenderRatio → double
Ratio of renders that carried native changes.
no setter
changedRenders → int
Number of renders that carried native changes.
final
hashCode → int
The hash code for this object.
no setterinherited
lastChangeSummary → ProgramRenderChangeSummary?
Last native-change summary observed by the monitor.
final
lastDegradationLevel → DegradationLevel?
Last degradation level observed by the monitor.
final
lastRenderGeneration → int?
Last render generation observed by the monitor.
final
maxChangedCells → int
Highest changed-cell count seen on any one render.
final
maxChangedSpans → int
Highest changed-span count seen on any one render.
final
maxDirtyLines → int
Highest dirty-line count seen on any one render.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalChangedCells → int
Cumulative changed-cell count across all renders.
final
totalChangedSpans → int
Cumulative grouped-span count across all renders.
final
totalRenderDuration → Duration
Sum of all render durations seen by the monitor.
final
totalRenders → int
Number of completed renders observed by the monitor.
final
unchangedRenders → int
Number of renders without native changes.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Converts this aggregate summary into a serialization-friendly map.
toMetricEntries({String prefix = 'Render'}) → Map<String, String>
Formats this summary as compact key-value lines for debug overlays.
toString() → String
A string representation of this object.
inherited

Operators

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