PerfCounter class
Simple performance counter to consolidate statistics about woker tast execution: total number of calls, total number of errors, total elapsed time, and max elapsed time.
- Implemented types
Constructors
- PerfCounter(String name)
- Creates a performance counter.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxTimeInMicroseconds → int
-
Maximum elapsed time for a single call, in microseconds.
no setteroverride
- name → String
-
The counter's name or label.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapshot → PerfCounterSnapshot
-
Returns a snapshot of the PerfCounter's values.
no setter
- totalCount → int
-
Total number of calls.
no setteroverride
- totalErrors → int
-
Total number of errors.
no setteroverride
- totalTimeInMicroseconds → int
-
Total elapsed time, in microseconds.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited