PerformanceMetricsSnapshot class

Combined snapshot of both runtime and widget-level metrics.

This merges the TUI runtime's renderer metrics (actual FPS, frame times) with the widget layer's phase breakdown (build/layout/paint).

Constructors

PerformanceMetricsSnapshot({RenderMetrics? renderMetrics, required List<WidgetFrameTiming> widgetTimings, required int widgetFrameCount})
const

Properties

averageBuildDuration Duration
Average widget build duration across recent frames.
no setter
averageLayoutDuration Duration
Average widget layout duration across recent frames.
no setter
averagePaintDuration Duration
Average widget paint duration across recent frames.
no setter
averageTotalDuration Duration
Average total widget frame duration.
no setter
hashCode int
The hash code for this object.
no setterinherited
renderMetrics RenderMetrics?
Runtime-level renderer metrics (may be null if not yet received).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slowFrameCount int
Number of slow frames (>16.67ms) in the recent window.
no setter
slowFramePercentage double
Percentage of slow frames in the recent window.
no setter
widgetFrameCount int
Total widget frames rendered.
final
widgetTimings List<WidgetFrameTiming>
Recent widget-level frame timings.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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