ICounters class abstract

Interface for performance counters that measure execution metrics.

The performance counters measure how code is performing: how fast or slow, how many transactions performed, how many objects are stored, what was the latest transaction time and so on.

They are critical to monitor and improve performance, scalability and reliability of code in production.

Implementers

Constructors

ICounters()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beginTiming(String name) CounterTiming
Begins measurement of execution time interval. It returns CounterTiming object which has to be called at CounterTiming.endTiming to end the measurement and update the counter.
increment(String name, int value) → void
Increments counter by given value.
incrementOne(String name) → void
Increments counter by 1.
last(String name, int value) → void
Records the last calculated measurement value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stats(String name, int value) → void
Calculates min/average/max statistics based on the current and previous values.
timestamp(String name, DateTime value) → void
Records the given timestamp.
timestampNow(String name) → void
Records the current time as a timestamp.
toString() String
A string representation of this object.
inherited

Operators

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