chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.tracing / TracingDomain

TracingDomain

class TracingDomain

Functions

bufferUsage

fun bufferUsage(): Flow<BufferUsageEvent>

dataCollected

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.

fun dataCollected(): Flow<DataCollectedEvent>

end

Stop trace events collection.

suspend fun end(): Unit

events

Subscribes to all events related to this domain.

fun events(): Flow<TracingEvent>

getCategories

Gets supported tracing categories.

suspend fun getCategories(): GetCategoriesResponse

recordClockSyncMarker

Record a clock sync marker in the trace.

suspend fun recordClockSyncMarker(input: RecordClockSyncMarkerRequest): Unit

requestMemoryDump

Request a global memory dump.

suspend fun requestMemoryDump(input: RequestMemoryDumpRequest): RequestMemoryDumpResponse

start

Start trace events collection.

suspend fun start(input: StartRequest): Unit

tracingComplete

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

fun tracingComplete(): Flow<TracingCompleteEvent>