WidgetBuildRecorder class abstract
A recorder for measuring the performance of building a widget from scratch starting from an empty frame.
The recorder will call createWidget and render it, then it will pump another frame that clears the screen. It repeats this process, measuring the performance of frames that render the widget and ignoring the frames that clear the screen.
- Inheritance
- Implemented types
Constructors
- WidgetBuildRecorder({required String name})
- Creates a widget build benchmark recorder.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTracingEnabled → bool
-
Whether this recorder requires tracing using Chrome's DevTools Protocol's
"Tracing" API.
finalinherited
- name → String
-
The name of the benchmark.
finalinherited
- profile ↔ Profile
-
Returns the recorded profile.
getter/setter pairoverride-getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showWidget ↔ bool
-
Whether in this frame we should call createWidget and render it.
getter/setter pair
Methods
-
createWidget(
) → Widget - Creates a widget to be benchmarked.
-
frameDidDraw(
) → void -
Called immediately after calling SchedulerBinding.handleDrawFrame.
override
-
frameWillDraw(
) → void -
Called just before calling SchedulerBinding.handleDrawFrame.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerDidStop(
VoidCallback fn) → void -
Add a callback that will be called by the recorder when it stops recording.
override
-
run(
) → Future< Profile> -
The implementation of the benchmark that will produce a Profile.
override
-
setUpAll(
) → Future< void> -
Called once before all runs of this benchmark recorder.
inherited
-
shouldContinue(
) → bool -
Whether the benchmark should continue running.
inherited
-
tearDownAll(
) → Future< void> -
Called once after all runs of this benchmark recorder.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited