Tracing Domain
Methods
Events
- Tracing.tracingComplete
- Tracing.bufferUsage Experimental
- Tracing.dataCollected Experimental
Methods
Tracing.start #
Start trace events collection.
Tracing.start is implemented as a stub only.
Parameters
categories
Optional
string
Category/tag filter
options
Optional
string
Tracing options
bufferUsageReportingInterval
Optional
number
If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
transferMode
Optional
string
Whether to report trace events as series of dataCollected events or to save trace to a
stream (defaults to ReportEvents
).
Allowed values: ReportEvents
, ReturnAsStream
streamFormat
Optional
Trace data format to use. This only applies when using ReturnAsStream
transfer mode (defaults to json
).
streamCompression
Optional
Compression format to use. This only applies when using ReturnAsStream
transfer mode (defaults to none
)
traceConfig
Optional
perfettoConfig
Optional
string
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
Optional
Events
Tracing.tracingComplete #
Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
Tracing.tracingComplete is implemented as a stub only.
Parameters
dataLossOccurred
boolean
Indicates whether some trace data is known to have been lost, e.g. because the trace ring buffer wrapped around.
stream
Optional
A handle of the stream that holds resulting trace data.
traceFormat
Optional
Trace data format of returned stream.
streamCompression
Optional
Compression format of returned stream.
Tracing.bufferUsage Experimental#
Tracing.bufferUsage is implemented as a stub only.
Parameters
percentFull
Optional
number
A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.
eventCount
Optional
number
An approximate number of events in the trace log.
value
Optional
number
A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.
Tracing.dataCollected Experimental#
Contains a bucket of collected trace events. When tracing is stopped collected events will be sent as a sequence of dataCollected events followed by tracingComplete event.
Tracing.dataCollected is implemented as a stub only.
Parameters
value
array[ object
]