PerfTestOne class Null safety

Wrapper class to execute user-defined procedures multiple times and measure either actual laps for a given time span or time span for a given number of iterations

Constructors

PerfTestOne(String name, {PerfTestFormat? format, bool isMyStopwatch = false, bool isOutLaps = false, int laps = 0, PerfTestLot? lot, String outRatio = '', String outValue = '', num ratio = 0, Stopwatch? stopwatch, PerfTestOneProc? testProc, PerfTestOneProcSync? testProcSync})
The constructor

Properties

format PerfTestFormat
Convenience property derived from lot
read / write
hashCode int
The hash code for this object.
read-only, inherited
isMyStopwatch bool
Flag indicating that the stopwatch is started and stopped by a user rather than by this class object
read / write
isOutLaps bool
Flag indicating that the output data is laps rather than span
read / write
laps int
Actual number of the test iterations upon execution completion
read / write
lot PerfTestLot?
Parent
read / write
name String
Name of the test
final
outRatio String
Output value of ratio
read / write
outValue String
Output value of value
read / write
ratio num
Ratio versus the first test
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
span Duration
Total duration of testProc execution
read / write
stopwatch Stopwatch
Stopwatch used to measure performance
read / write
testProc PerfTestOneProc?
Actual user-defined procedure (asynchronous)
final
testProcSync PerfTestOneProcSync?
Actual user-defined procedure (synchronous)
final
value int
Generic value based on expectation
read-only

Methods

exec({int? maxLaps, Duration? maxSpan}) Future<PerfTestOne>
Actual test execution (asynchronous)
execSync({int? maxLaps, Duration? maxSpan}) PerfTestOne
Actual test execution (synchronous)
initLot(PerfTestLot? newLot) PerfTestOne
Initialize parent property with newLot as well as initialize convenience properties depending on that
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
setOutValue() → void
Serializer of the mode-specific value
setRatio(PerfTestOne versus) → void
Calculate ratio against another test
toString() String
A string representation of this object.
inherited

Operators

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