cdp-driver 0.3.0

Chrome DevTools Protocol client for AI agent browser control
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! The `Tracing` domain.
//!
//! Method names for the `Tracing` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).

/// Stop trace events collection.
pub const END: &str = "Tracing.end";

/// Gets supported tracing categories.
///
/// Experimental: may change without notice.
///
/// Returns: `categories`
pub const GET_CATEGORIES: &str = "Tracing.getCategories";

/// Return a descriptor for all available tracing categories.
///
/// Experimental: may change without notice.
///
/// Returns: `descriptor`
pub const GET_TRACK_EVENT_DESCRIPTOR: &str = "Tracing.getTrackEventDescriptor";

/// Record a clock sync marker in the trace.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `syncId`: string
pub const RECORD_CLOCK_SYNC_MARKER: &str = "Tracing.recordClockSyncMarker";

/// Request a global memory dump.
///
/// Experimental: may change without notice.
///
/// Parameters:
/// - `deterministic`: boolean (optional)
/// - `levelOfDetail`: MemoryDumpLevelOfDetail (optional)
///
/// Returns: `dumpGuid`, `success`
pub const REQUEST_MEMORY_DUMP: &str = "Tracing.requestMemoryDump";

/// Start trace events collection.
///
/// Parameters:
/// - `categories`: string (optional)
/// - `options`: string (optional)
/// - `bufferUsageReportingInterval`: number (optional)
/// - `transferMode`: string (optional)
/// - `streamFormat`: StreamFormat (optional)
/// - `streamCompression`: StreamCompression (optional)
/// - `traceConfig`: TraceConfig (optional)
/// - `perfettoConfig`: string (optional)
/// - `tracingBackend`: TracingBackend (optional)
/// - `screenshotMaxSize`: integer (optional)
/// - `screenshotMaxCount`: integer (optional)
pub const START: &str = "Tracing.start";