Runner class

Runs the benchmark using the given recorder.

Notifies about "set up" and "tear down" events via the setUpAllDidRun and tearDownAllWillRun callbacks.

Annotations
  • @sealed

Constructors

Runner({required Recorder recorder, AsyncVoidCallback setUpAllDidRun = _dummyAsyncVoidCallback, AsyncVoidCallback tearDownAllWillRun = _dummyAsyncVoidCallback})
Creates a runner for the recorder.

Properties

hashCode int
The hash code for this object.
no setterinherited
recorder Recorder
The recorder that will run and record the benchmark.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
setUpAllDidRun AsyncVoidCallback
Called immediately after Recorder.setUpAll future is resolved.
final
tearDownAllWillRun AsyncVoidCallback
Called just before calling Recorder.tearDownAll.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() Future<Profile>
Runs the benchmark and reports the results.
toString() String
A string representation of this object.
inherited

Operators

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