Profile class

Base class for a profile collected from running a benchmark.

Constructors

Profile({required String name, bool useCustomWarmUp = false})
Creates an empty profile.

Properties

extraData → Map<String, dynamic>
This data isn't displayed anywhere. It's stored for completeness purposes.
final
hashCode → int
The hash code for this object.
no setterinherited
isWarmingUp → bool
Whether we are measuring warm-up frames currently.
no setter
name → String
The name of the benchmark that produced this profile.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scoreData → Map<String, Timeseries>
This data will be used to display cards in the Flutter Dashboard.
final
useCustomWarmUp → bool
Whether to delimit warm-up frames in a custom way.
final

Methods

addDataPoint(String key, Duration duration, {required bool reported}) → void
Adds a timed sample to the timeseries corresponding to key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
record(String key, VoidCallback callback, {required bool reported}) → Duration
Invokes callback and records the duration of its execution under key.
shouldContinue() → bool
Decides whether the data collected so far is sufficient to stop, or whether the benchmark should continue collecting more data.
stopWarmingUp() → void
Stop the warm-up phase.
toJson() → Map<String, dynamic>
Returns a JSON representation of the profile that will be sent to the server.
toString() → String
A string representation of this object.
override

Operators

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