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.

consoleProfileStarted

fun consoleProfileStarted(): Flowable<ConsoleProfileStartedEvent>

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

disable

fun disable(): Single<ResponseFrame>

disableRuntimeCallStats

fun disableRuntimeCallStats(): Single<ResponseFrame>

Disable run time call stats collection.

enable

fun enable(): Single<ResponseFrame>

enableRuntimeCallStats

fun enableRuntimeCallStats(): Single<ResponseFrame>

Enable run time call stats collection.

events

fun events(): Flowable<Event>

Returns flowable capturing all Profiler domains events.

getBestEffortCoverage

fun getBestEffortCoverage(): Single<GetBestEffortCoverageResponse>

Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.

getRuntimeCallStats

fun getRuntimeCallStats(): Single<GetRuntimeCallStatsResponse>

Retrieve run time call stats.

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>

startPreciseCoverage

fun startPreciseCoverage(input: StartPreciseCoverageRequest): Single<StartPreciseCoverageResponse>

Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.

startTypeProfile

fun startTypeProfile(): Single<ResponseFrame>

Enable type profile.

stop

fun stop(): Single<StopResponse>

stopPreciseCoverage

fun stopPreciseCoverage(): Single<ResponseFrame>

Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.

stopTypeProfile

fun stopTypeProfile(): Single<ResponseFrame>

Disable type profile. Disabling releases type profile data collected so far.

takePreciseCoverage

fun takePreciseCoverage(): Single<TakePreciseCoverageResponse>

Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.

takeTypeProfile

fun takeTypeProfile(): Single<TakeTypeProfileResponse>

Collect type profile.