cdp-driver 0.5.0

Chrome DevTools Protocol (CDP) client for Rust: every command, event and type generated from the schema, with sessions, for browser automation and AI agents
Documentation
// @generated by `just generate-methods` from protocol/*.json.
// Do not edit by hand; edit xtask/ and regenerate.

//! The `HeapProfiler` domain.
//!
//! Method names for the `HeapProfiler` domain, for use with
//! [`CdpClient::call`](crate::CdpClient::call).
//!
//! This domain is experimental and may change without notice.

/// Enables console to refer to the node with given id via $x (see Command
/// Line API for more details $x functions).
///
/// Parameters:
/// - `heapObjectId`: HeapSnapshotObjectId
pub const ADD_INSPECTED_HEAP_OBJECT: &str = "HeapProfiler.addInspectedHeapObject";

/// `HeapProfiler.collectGarbage`
pub const COLLECT_GARBAGE: &str = "HeapProfiler.collectGarbage";

/// `HeapProfiler.disable`
pub const DISABLE: &str = "HeapProfiler.disable";

/// `HeapProfiler.enable`
pub const ENABLE: &str = "HeapProfiler.enable";

/// `HeapProfiler.getHeapObjectId`
///
/// Parameters:
/// - `objectId`: Runtime.RemoteObjectId
///
/// Returns: `heapSnapshotObjectId`
pub const GET_HEAP_OBJECT_ID: &str = "HeapProfiler.getHeapObjectId";

/// `HeapProfiler.getObjectByHeapObjectId`
///
/// Parameters:
/// - `objectId`: HeapSnapshotObjectId
/// - `objectGroup`: string (optional)
///
/// Returns: `result`
pub const GET_OBJECT_BY_HEAP_OBJECT_ID: &str = "HeapProfiler.getObjectByHeapObjectId";

/// `HeapProfiler.getSamplingProfile`
///
/// Returns: `profile`
pub const GET_SAMPLING_PROFILE: &str = "HeapProfiler.getSamplingProfile";

/// `HeapProfiler.startSampling`
///
/// Parameters:
/// - `samplingInterval`: number (optional)
/// - `stackDepth`: number (optional)
/// - `includeObjectsCollectedByMajorGC`: boolean (optional)
/// - `includeObjectsCollectedByMinorGC`: boolean (optional)
pub const START_SAMPLING: &str = "HeapProfiler.startSampling";

/// `HeapProfiler.startTrackingHeapObjects`
///
/// Parameters:
/// - `trackAllocations`: boolean (optional)
pub const START_TRACKING_HEAP_OBJECTS: &str = "HeapProfiler.startTrackingHeapObjects";

/// `HeapProfiler.stopSampling`
///
/// Returns: `profile`
pub const STOP_SAMPLING: &str = "HeapProfiler.stopSampling";

/// `HeapProfiler.stopTrackingHeapObjects`
///
/// Parameters:
/// - `reportProgress`: boolean (optional)
/// - `treatGlobalObjectsAsRoots`: boolean (optional)
/// - `captureNumericValue`: boolean (optional)
/// - `exposeInternals`: boolean (optional)
pub const STOP_TRACKING_HEAP_OBJECTS: &str = "HeapProfiler.stopTrackingHeapObjects";

/// `HeapProfiler.takeHeapSnapshot`
///
/// Parameters:
/// - `reportProgress`: boolean (optional)
/// - `treatGlobalObjectsAsRoots`: boolean (optional)
/// - `captureNumericValue`: boolean (optional)
/// - `exposeInternals`: boolean (optional)
pub const TAKE_HEAP_SNAPSHOT: &str = "HeapProfiler.takeHeapSnapshot";