Skip to main content

cdp_driver/methods/
profiler.rs

1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! The `Profiler` domain.
5//!
6//! Method names for the `Profiler` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8
9/// `Profiler.disable`
10pub const DISABLE: &str = "Profiler.disable";
11
12/// `Profiler.enable`
13pub const ENABLE: &str = "Profiler.enable";
14
15/// Collect coverage data for the current isolate. The coverage data may be
16/// incomplete due to garbage collection.
17///
18/// Returns: `result`
19pub const GET_BEST_EFFORT_COVERAGE: &str = "Profiler.getBestEffortCoverage";
20
21/// Changes CPU profiler sampling interval. Must be called before CPU profiles
22/// recording started.
23///
24/// Parameters:
25/// - `interval`: integer
26pub const SET_SAMPLING_INTERVAL: &str = "Profiler.setSamplingInterval";
27
28/// `Profiler.start`
29pub const START: &str = "Profiler.start";
30
31/// Enable precise code coverage. Coverage data for JavaScript executed before
32/// enabling precise code coverage may be incomplete. Enabling prevents
33/// running optimized code and resets execution counters.
34///
35/// Parameters:
36/// - `callCount`: boolean (optional)
37/// - `detailed`: boolean (optional)
38/// - `allowTriggeredUpdates`: boolean (optional)
39///
40/// Returns: `timestamp`
41pub const START_PRECISE_COVERAGE: &str = "Profiler.startPreciseCoverage";
42
43/// `Profiler.stop`
44///
45/// Returns: `profile`
46pub const STOP: &str = "Profiler.stop";
47
48/// Disable precise code coverage. Disabling releases unnecessary execution
49/// count records and allows executing optimized code.
50pub const STOP_PRECISE_COVERAGE: &str = "Profiler.stopPreciseCoverage";
51
52/// Collect coverage data for the current isolate, and resets execution
53/// counters. Precise code coverage needs to have started.
54///
55/// Returns: `result`, `timestamp`
56pub const TAKE_PRECISE_COVERAGE: &str = "Profiler.takePreciseCoverage";