MetricsCollector class

Collects metrics periodically and exposes them as a stream.

Constructors

MetricsCollector(MetricsPlugin _platformCollector)
Creates a MetricsCollector using the given MetricsPlugin.

Properties

hashCode int
The hash code for this object.
no setterinherited
metricsStream Stream<MetricsData>
Returns a broadcast stream of collected MetricsData.
no setter
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
start({Duration interval = const Duration(seconds: 2)}) → void
Starts periodic metrics collection.
stop() → void
Stops periodic metrics collection.
toString() String
A string representation of this object.
inherited

Operators

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