BenchmarkMetric enum

The names for the metrics collected by the benchmark recorder.

Inheritance
Available extensions

Values

prerollFrame → const BenchmarkMetric

The name for the benchmark metric that includes frame-related computations prior to submitting layer and picture operations to the underlying renderer, such as HTML and CanvasKit.

During this phase we compute transforms, clips, and other information needed for rendering.

const BenchmarkMetric('preroll_frame')
applyFrame → const BenchmarkMetric

The name for the benchmark metric that includes submitting layer and picture information to the renderer.

const BenchmarkMetric('apply_frame')
drawFrame → const BenchmarkMetric

The name for the benchmark metric that measures the time spent in PlatformDispatcher's onDrawFrame callback.

const BenchmarkMetric('draw_frame')
flutterFrameTotalTime → const BenchmarkMetric

The name for the benchmark metric that tracks the timespan between vsync start and raster finish for a Flutter frame.

This value corresponds to FrameTiming.totalSpan from the Flutter Engine.

const BenchmarkMetric('flutter_frame.total_time')
flutterFrameBuildTime → const BenchmarkMetric

The name for the benchmark metric that tracks the duration to build the Flutter frame on the Dart UI thread.

This value corresponds to FrameTiming.buildDuration from the Flutter Engine.

const BenchmarkMetric('flutter_frame.build_time')
flutterFrameRasterTime → const BenchmarkMetric

The name for the benchmark metric that tracks the duration to rasterize the Flutter frame on the Dart raster thread.

This value corresponds to FrameTiming.rasterDuration from the Flutter Engine.

const BenchmarkMetric('flutter_frame.raster_time')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
label String
The metric name used in the recorded benchmark data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<BenchmarkMetric>
A constant List of the values in this enum, in order of their declaration.