pl.wendigo.chrome.api.tracing / TracingOperations

TracingOperations

class TracingOperations (source)

TracingOperations represents Tracing protocol domain request/response operations and events that can be captured.

This API is marked as experimental in protocol definition and can change in the future.

Link
Protocol Tracing domain documentation.

Functions

bufferUsage

fun bufferUsage(): Flowable<BufferUsageEvent>

Returns observable capturing all Tracing.bufferUsage events.

dataCollected

fun dataCollected(): Flowable<DataCollectedEvent>

Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.

end

fun end(): Single<ResponseFrame>

Stop trace events collection.

events

fun events(): Flowable<Event>

Returns flowable capturing all Tracing domains events.

getCategories

fun getCategories(): Single<GetCategoriesResponse>

Gets supported tracing categories.

recordClockSyncMarker

fun recordClockSyncMarker(input: RecordClockSyncMarkerRequest): Single<ResponseFrame>

Record a clock sync marker in the trace.

requestMemoryDump

fun requestMemoryDump(input: RequestMemoryDumpRequest): Single<RequestMemoryDumpResponse>

Request a global memory dump.

start

fun start(input: StartRequest): Single<ResponseFrame>

Start trace events collection.

tracingComplete

fun tracingComplete(): Flowable<TracingCompleteEvent>

Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.