Skip to main content

Module tracing

Module tracing 

Source
Expand description

The Tracing domain.

Types, command parameters and event payloads for the Tracing domain. The method-name constants for the same domain are in crate::methods.

Structs§

BufferUsageEvent
Experimental: may change without notice.
DataCollectedEvent
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.
EndParams
Stop trace events collection.
GetCategoriesParams
Gets supported tracing categories.
GetCategoriesReturns
What Tracing.getCategories answers with.
GetTrackEventDescriptorParams
Return a descriptor for all available tracing categories.
GetTrackEventDescriptorReturns
What Tracing.getTrackEventDescriptor answers with.
RecordClockSyncMarkerParams
Record a clock sync marker in the trace.
RequestMemoryDumpParams
Request a global memory dump.
RequestMemoryDumpReturns
What Tracing.requestMemoryDump answers with.
StartParams
Start trace events collection.
TraceConfig
TracingCompleteEvent
Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.

Enums§

MemoryDumpLevelOfDetail
Details exposed when memory request explicitly declared. Keep consistent with memory_dump_request_args.h and memory_instrumentation.mojom
StartTransferMode
The values transferMode accepts on start.
StreamCompression
Compression type to use for traces returned via streams.
StreamFormat
Data format of a trace. Can be either the legacy JSON format or the protocol buffer format. Note that the JSON format will be deprecated soon.
TraceConfigRecordMode
The values recordMode accepts on TraceConfig.
TracingBackend
Backend type to use for tracing. chrome uses the Chrome-integrated tracing service and is supported on all platforms. system is only supported on Chrome OS and uses the Perfetto system tracing service. auto chooses system when the perfettoConfig provided to Tracing.start specifies at least one non-Chrome data source; otherwise uses chrome.

Type Aliases§

MemoryDumpConfig
Configuration for memory dump. Used only when “memory-infra” category is enabled.