start

suspend fun start(args: Tracing.StartParameter, mode: CommandMode = CommandMode.DEFAULT)

Start trace events collection.


suspend fun start(categories: String? = null, options: String? = null, bufferUsageReportingInterval: Double? = null, transferMode: String? = null, streamFormat: Tracing.StreamFormat? = null, streamCompression: Tracing.StreamCompression? = null, traceConfig: Tracing.TraceConfig? = null, perfettoConfig: String? = null, tracingBackend: Tracing.TracingBackend? = null)

Start trace events collection.

Parameters

categories

Category/tag filter

options

Tracing options

bufferUsageReportingInterval

If set, the agent will issue bufferUsage events at this interval, specified in milliseconds

transferMode

Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents).

streamFormat

Trace data format to use. This only applies when using ReturnAsStream transfer mode (defaults to json).

streamCompression

Compression format to use. This only applies when using ReturnAsStream transfer mode (defaults to none)

traceConfig

No description

perfettoConfig

Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters categories, options, traceConfig are ignored. (Encoded as a base64 string when passed over JSON)

tracingBackend

Backend type (defaults to auto)