PerformanceApi class


PerformanceApi(Client _client)


hashCode int
The hash code for this object.
no setterinherited
onMetrics Stream<MetricsEvent>
Current values of the metrics.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


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 nonexistent method or property is accessed.
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.


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