ZenMetrics class

Performance and usage metrics for ZenState

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

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

Static Properties

activeControllers int
Controller metrics
getter/setter pair
controllerCreationCount Map<String, int>
getter/setter pair
effectFailureCounts Map<String, int>
getter/setter pair
effectSuccessCounts Map<String, int>
getter/setter pair
totalControllersCreated int
getter/setter pair
totalControllersDisposed int
getter/setter pair
totalEffectFailures int
getter/setter pair
totalEffectRuns int
Effect metrics
getter/setter pair
totalEffectSuccesses int
getter/setter pair
totalProviders int
getter/setter pair
totalRxValues int
Reactive state metrics
getter/setter pair
totalStateUpdates int
getter/setter pair

Static Methods

getAverageDuration(String operation) Duration?
Get average duration for an operation
getReport() Map<String, dynamic>
Get metrics report
incrementCounter(String name) → void
Increment a named counter to track occurrences of an event
recordControllerCreation(Type controllerType) → void
Record controller creation
recordControllerDisposal(Type controllerType) → void
Record controller disposal
recordCounterValue(String name, int value) → void
Record a specific value for a named counter
recordEffectFailure(String effectName) → void
Record a failed effect execution
recordEffectSuccess(String effectName) → void
Record a successful effect execution
recordProviderCreation() → void
Record provider creation
recordRxCreation() → void
Record Rx value creation
recordStateUpdate() → void
Record state update
reset() → void
Reset all metrics
startPeriodicLogging(Duration interval) → void
startTiming(String operation) → void
Start timing an operation
stopPeriodicLogging() → void
stopTiming(String operation) → void
Stop timing an operation and record the result