pl.wendigo.chrome.api.profiler / ProfilerOperations

ProfilerOperations

class ProfilerOperations (source)

ProfilerOperations represents Profiler protocol domain request/response operations and events that can be captured.

Link
Protocol Profiler domain documentation.

Functions

consoleProfileFinished

fun consoleProfileFinished(): Flowable<ConsoleProfileFinishedEvent>

Returns observable capturing all Profiler.consoleProfileFinished events.

consoleProfileFinishedTimed

fun consoleProfileFinishedTimed(): Flowable<Timed<ConsoleProfileFinishedEvent>>

Returns observable capturing all Profiler.consoleProfileFinished events.

consoleProfileStarted

fun consoleProfileStarted(): Flowable<ConsoleProfileStartedEvent>

Sent when new profile recodring is started using console.profile() call.

consoleProfileStartedTimed

fun consoleProfileStartedTimed(): Flowable<Timed<ConsoleProfileStartedEvent>>

Sent when new profile recodring is started using console.profile() call.

disable

fun disable(): Single<ResponseFrame>

enable

fun enable(): Single<ResponseFrame>

events

fun events(): Flowable<Event>

Returns flowable capturing all Profiler domains events.

setSamplingInterval

fun setSamplingInterval(input: SetSamplingIntervalRequest): Single<ResponseFrame>

Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

start

fun start(): Single<ResponseFrame>

stop

fun stop(): Single<StopResponse>