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§
- Buffer
Usage Event - Experimental: may change without notice.
- Data
Collected Event - 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.
- GetCategories
Params - Gets supported tracing categories.
- GetCategories
Returns - What
Tracing.getCategoriesanswers with. - GetTrack
Event Descriptor Params - Return a descriptor for all available tracing categories.
- GetTrack
Event Descriptor Returns - What
Tracing.getTrackEventDescriptoranswers with. - Record
Clock Sync Marker Params - Record a clock sync marker in the trace.
- Request
Memory Dump Params - Request a global memory dump.
- Request
Memory Dump Returns - What
Tracing.requestMemoryDumpanswers with. - Start
Params - Start trace events collection.
- Trace
Config - Tracing
Complete Event - Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.
Enums§
- Memory
Dump Level OfDetail - Details exposed when memory request explicitly declared. Keep consistent with memory_dump_request_args.h and memory_instrumentation.mojom
- Start
Transfer Mode - The values
transferModeaccepts onstart. - Stream
Compression - Compression type to use for traces returned via streams.
- Stream
Format - 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.
- Trace
Config Record Mode - The values
recordModeaccepts onTraceConfig. - Tracing
Backend - Backend type to use for tracing.
chromeuses the Chrome-integrated tracing service and is supported on all platforms.systemis only supported on Chrome OS and uses the Perfetto system tracing service.autochoosessystemwhen the perfettoConfig provided to Tracing.start specifies at least one non-Chrome data source; otherwise useschrome.
Type Aliases§
- Memory
Dump Config - Configuration for memory dump. Used only when “memory-infra” category is enabled.