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