PerfTestOne class

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
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isMyStopwatch bool
Flag indicating that the stopwatch is started and stopped by a user rather than by this class object
getter/setter pair
isOutLaps bool
Flag indicating that the output data is laps rather than span
getter/setter pair
laps int
Actual number of the test iterations upon execution completion
getter/setter pair
lot PerfTestLot?
Parent
getter/setter pair
name String
Name of the test
final
outRatio String
Output value of ratio
getter/setter pair
outValue String
Output value of value
getter/setter pair
ratio num
Ratio versus the first test
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span Duration
Total duration of testProc execution
getter/setter pair
stopwatch Stopwatch
Stopwatch used to measure performance
getter/setter pair
testProc PerfTestOneProc?
Actual user-defined procedure (asynchronous)
final
testProcSync PerfTestOneProcSync?
Actual user-defined procedure (synchronous)
final
value int
Generic value based on expectation
no setter

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 nonexistent 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