PerformanceApi class Null safety

Constructors

PerformanceApi(Client _client)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onMetrics Stream<MetricsEvent>
Current values of the metrics.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

disable() Future<void>
Disable collecting and reporting metrics.
enable({String? timeDomain}) Future<void>
Enable collecting and reporting metrics. timeDomain Time domain to use for collecting and reporting duration metrics.
getMetrics() Future<List<Metric>>
Retrieve current values of run-time metrics. Returns: Current values for run-time metrics.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setTimeDomain(String timeDomain) Future<void>
Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error. timeDomain Time domain
toString() String
A string representation of this object. [...]
inherited

Operators

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