pl.wendigo.chrome.api.performance / PerformanceOperations

PerformanceOperations

class PerformanceOperations (source)

PerformanceOperations represents Performance protocol domain request/response operations and events that can be captured.

Link
Protocol Performance domain documentation.

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<Event>

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.