NullCounters class
Dummy implementation of performance counters that doesn't do anything.
It can be used in testing or in situations when counters is required but shall be disabled.
See ICounters
- Implemented types
Constructors
- NullCounters()
- Creates a new instance of the counter.
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
beginTiming(
String name) → Timing -
Begins measurement of execution time interval.
It returns Timing object which has to be called at
Timing.endTiming to end the measurement and update the counter. [...]
override
-
increment(
String name, int value) → void -
Increments counter by given value. [...]
override
-
incrementOne(
String name) → void -
Increments counter by 1. [...]
override
-
last(
String name, int value) → void -
Records the last calculated measurement value. [...]
override
-
stats(
String name, int value) → void -
Calculates min/average/max statistics based on the current and previous values. [...]
override
-
timestamp(
String name, DateTime value) → void -
Records the given timestamp. [...]
override
-
timestampNow(
String name) → void -
Records the current time as a timestamp. [...]
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited