Module cdp::profiler
[−]
[src]
Profiler
Commands
Profiler.enableProfiler.disable-
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
Profiler.startPreciseCoverageExperimentalEnable 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.stopPreciseCoverageExperimentalDisable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
Profiler.takePreciseCoverageExperimentalCollect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
Profiler.getBestEffortCoverageExperimentalCollect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
Events
Profiler.consoleProfileStartedSent when new profile recording is started using console.profile() call.
Types
-
Profile node. Holds callsite information, execution statistics and child nodes.
-
Profile.
PositionTickInfoExperimentalSpecifies a number of samples attributed to a certain source position.
CoverageRangeExperimentalCoverage data for a source range.
FunctionCoverageExperimentalCoverage data for a JavaScript function.
ScriptCoverageExperimentalCoverage 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. |