Expand description
The Profiler domain.
Types, command parameters and event payloads for the Profiler
domain. The method-name constants for the same domain are in
crate::methods.
Structsยง
- Console
Profile Finished Event - Payload of the
Profiler.consoleProfileFinishedevent. - Console
Profile Started Event - Sent when new profile recording is started using console.profile() call.
- Coverage
Range - Coverage data for a source range.
- Disable
Params - Parameters of
Profiler.disable. - Enable
Params - Parameters of
Profiler.enable. - Function
Coverage - Coverage data for a JavaScript function.
- GetBest
Effort Coverage Params - Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
- GetBest
Effort Coverage Returns - What
Profiler.getBestEffortCoverageanswers with. - Position
Tick Info - Specifies a number of samples attributed to a certain source position.
- Precise
Coverage Delta Update Event - Reports coverage delta since the last poll (either from an event like
this, or from
takePreciseCoveragefor the current isolate. May only be sent if precise code coverage has been started. This event can be trigged by the embedder to, for example, trigger collection of coverage data immediately at a certain point in time. - Profile
- Profile.
- Profile
Node - Profile node. Holds callsite information, execution statistics and child nodes.
- Script
Coverage - Coverage data for a JavaScript script.
- SetSampling
Interval Params - Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
- Start
Params - Parameters of
Profiler.start. - Start
Precise Coverage Params - 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.
- Start
Precise Coverage Returns - What
Profiler.startPreciseCoverageanswers with. - Stop
Params - Parameters of
Profiler.stop. - Stop
Precise Coverage Params - Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
- Stop
Returns - What
Profiler.stopanswers with. - Take
Precise Coverage Params - Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
- Take
Precise Coverage Returns - What
Profiler.takePreciseCoverageanswers with.