chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.performance / PerformanceDomain

PerformanceDomain

class PerformanceDomain

Functions

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 setTimeDomain(input: SetTimeDomainRequest): Unit