AsyncTimeTracker class

Track all async execution as disjoint time slices in ascending order.

Can track both async and sync actions. Can exclude time of tested trackers.

If tracked action spawns some dangled async executions behavior is't defined. Tracked might or might not track time of such executions

Inheritance
Implemented types

Constructors

AsyncTimeTracker({bool trackNested = true})

Properties

duration Duration
The total duration of this operation, equivalent to taking the difference between stopTime and startTime.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
innerDuration Duration
Sum of durations of all slices.
no setterinherited
isFinished bool
Whether tracking is finished.
no setteroverride
isStarted bool
Whether tracking was started.
no setteroverride
isTracking bool
Whether tracking is active.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slices List<TimeSlice>
finalinherited
startTime DateTime
no setterinherited
stopTime DateTime
no setterinherited
trackNested bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
track<T>(T action()) → T
override

Operators

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