Skip to main content

cdp_driver/methods/
performance.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `Performance` domain.
5//!
6//! Method names for the `Performance` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8
9/// Disable collecting and reporting metrics.
10pub const DISABLE: &str = "Performance.disable";
11
12/// Enable collecting and reporting metrics.
13///
14/// Parameters:
15/// - `timeDomain`: string (optional)
16pub const ENABLE: &str = "Performance.enable";
17
18/// Sets time domain to use for collecting and reporting duration metrics.
19/// Note that this must be called before enabling metrics collection. Calling
20/// this method while metrics collection is enabled returns an error.
21///
22/// Deprecated in the protocol.
23/// Experimental: may change without notice.
24///
25/// Parameters:
26/// - `timeDomain`: string
27pub const SET_TIME_DOMAIN: &str = "Performance.setTimeDomain";
28
29/// Retrieve current values of run-time metrics.
30///
31/// Returns: `metrics`
32pub const GET_METRICS: &str = "Performance.getMetrics";