WidgetFrameTiming class
Per-frame timing data from the widget layer.
Captures how long each phase of a widget frame takes:
- buildDuration — time spent in
BuildOwner.buildScope - layoutDuration — time spent in render object layout
- paintDuration — time spent in render object paint
- totalDuration — total
ElementTree.render()time
See also nocterm's FrameTiming for the reference design.
Constructors
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