class PerformanceDomain
disable |
Disable collecting and reporting metrics. suspend fun disable(): Unit |
enable |
Enable collecting and reporting metrics. suspend fun enable(input: EnableRequest): Unit |
events |
Subscribes to all events related to this domain. fun events(): Flow<PerformanceEvent> |
getMetrics |
Retrieve current values of run-time metrics. suspend fun getMetrics(): GetMetricsResponse |
metrics |
Current values of the metrics. fun metrics(): Flow<MetricsEvent> |
setTimeDomain |
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. suspend fun |