Module cdp::profiler
[−]
[src]
Profiler
Commands
Profiler.enable
Profiler.disable
-
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
Profiler.startPreciseCoverage
ExperimentalEnable 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.
Profiler.stopPreciseCoverage
ExperimentalDisable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
Profiler.takePreciseCoverage
ExperimentalCollect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
Profiler.getBestEffortCoverage
ExperimentalCollect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
Events
Profiler.consoleProfileStarted
Sent when new profile recording is started using console.profile() call.
Types
-
Profile node. Holds callsite information, execution statistics and child nodes.
-
Profile.
PositionTickInfo
ExperimentalSpecifies a number of samples attributed to a certain source position.
CoverageRange
ExperimentalCoverage data for a source range.
FunctionCoverage
ExperimentalCoverage data for a JavaScript function.
ScriptCoverage
ExperimentalCoverage data for a JavaScript script.
Structs
ConsoleProfileFinishedEvent | |
ConsoleProfileStartedEvent |
Sent when new profile recording is started using console.profile() call. |
CoverageRange |
[Experimental] Coverage data for a source range. |
DisableCommand | |
DisableResponse | |
EnableCommand | |
EnableResponse | |
FunctionCoverage |
[Experimental] Coverage data for a JavaScript function. |
GetBestEffortCoverageCommand |
[Experimental] Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. |
GetBestEffortCoverageResponse |
[Experimental] Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. |
PositionTickInfo |
[Experimental] Specifies a number of samples attributed to a certain source position. |
Profile |
Profile. |
ProfileNode |
Profile node. Holds callsite information, execution statistics and child nodes. |
ScriptCoverage |
[Experimental] Coverage data for a JavaScript script. |
SetSamplingIntervalCommand |
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. |
SetSamplingIntervalResponse |
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. |
StartCommand | |
StartPreciseCoverageCommand |
[Experimental] 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. |
StartPreciseCoverageResponse |
[Experimental] 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. |
StartResponse | |
StopCommand | |
StopPreciseCoverageCommand |
[Experimental] Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. |
StopPreciseCoverageResponse |
[Experimental] Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. |
StopResponse | |
TakePreciseCoverageCommand |
[Experimental] Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. |
TakePreciseCoverageResponse |
[Experimental] Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. |