pl.wendigo.chrome.domain.performance / PerformanceDomain

PerformanceDomain

class PerformanceDomain (source)

PerformanceDomain represents remote debugger protocol domain.

Functions

disable

fun disable(): Single<ResponseFrame>

Disable collecting and reporting metrics.

enable

fun enable(): Single<ResponseFrame>

Enable collecting and reporting metrics.

events

fun events(): Flowable<ProtocolEvent>

Returns flowable capturing all Performance domains events.

getMetrics

fun getMetrics(): Single<GetMetricsResponse>

Retrieve current values of run-time metrics.

metrics

fun metrics(): Flowable<MetricsEvent>

Current values of the metrics.

metricsTimed

fun metricsTimed(): Flowable<Timed<MetricsEvent>>

Current values of the metrics.

setTimeDomain

fun setTimeDomain(input: SetTimeDomainRequest): Single<ResponseFrame>

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.