cdp_driver/methods/tracing.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `Tracing` domain.
5//!
6//! Method names for the `Tracing` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8
9/// Stop trace events collection.
10pub const END: &str = "Tracing.end";
11
12/// Gets supported tracing categories.
13///
14/// Experimental: may change without notice.
15///
16/// Returns: `categories`
17pub const GET_CATEGORIES: &str = "Tracing.getCategories";
18
19/// Return a descriptor for all available tracing categories.
20///
21/// Experimental: may change without notice.
22///
23/// Returns: `descriptor`
24pub const GET_TRACK_EVENT_DESCRIPTOR: &str = "Tracing.getTrackEventDescriptor";
25
26/// Record a clock sync marker in the trace.
27///
28/// Experimental: may change without notice.
29///
30/// Parameters:
31/// - `syncId`: string
32pub const RECORD_CLOCK_SYNC_MARKER: &str = "Tracing.recordClockSyncMarker";
33
34/// Request a global memory dump.
35///
36/// Experimental: may change without notice.
37///
38/// Parameters:
39/// - `deterministic`: boolean (optional)
40/// - `levelOfDetail`: MemoryDumpLevelOfDetail (optional)
41///
42/// Returns: `dumpGuid`, `success`
43pub const REQUEST_MEMORY_DUMP: &str = "Tracing.requestMemoryDump";
44
45/// Start trace events collection.
46///
47/// Parameters:
48/// - `categories`: string (optional)
49/// - `options`: string (optional)
50/// - `bufferUsageReportingInterval`: number (optional)
51/// - `transferMode`: string (optional)
52/// - `streamFormat`: StreamFormat (optional)
53/// - `streamCompression`: StreamCompression (optional)
54/// - `traceConfig`: TraceConfig (optional)
55/// - `perfettoConfig`: string (optional)
56/// - `tracingBackend`: TracingBackend (optional)
57/// - `screenshotMaxSize`: integer (optional)
58/// - `screenshotMaxCount`: integer (optional)
59pub const START: &str = "Tracing.start";