WidgetFrameTiming class

Per-frame timing data from the widget layer.

Captures how long each phase of a widget frame takes:

See also nocterm's FrameTiming for the reference design.

Constructors

WidgetFrameTiming({required int frameNumber, required Duration buildDuration, required Duration layoutDuration, required Duration paintDuration, required Duration totalDuration, required DateTime timestamp})
const

Properties

buildDuration Duration
Time spent rebuilding dirty elements.
final
frameNumber int
Monotonically increasing frame counter within the widget layer.
final
hashCode int
The hash code for this object.
no setterinherited
isSlowFrame bool
Whether this frame exceeded the 16.67ms budget (60fps target).
no setter
layoutDuration Duration
Time spent in render object layout.
final
paintDuration Duration
Time spent in render object paint.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
When this frame was produced.
final
totalDuration Duration
Total time for the entire ElementTree.render() call.
final

Methods

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

Operators

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