Skip to main content

Module profiler

Module profiler 

Source
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ยง

ConsoleProfileFinishedEvent
Payload of the Profiler.consoleProfileFinished event.
ConsoleProfileStartedEvent
Sent when new profile recording is started using console.profile() call.
CoverageRange
Coverage data for a source range.
DisableParams
Parameters of Profiler.disable.
EnableParams
Parameters of Profiler.enable.
FunctionCoverage
Coverage data for a JavaScript function.
GetBestEffortCoverageParams
Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
GetBestEffortCoverageReturns
What Profiler.getBestEffortCoverage answers with.
PositionTickInfo
Specifies a number of samples attributed to a certain source position.
PreciseCoverageDeltaUpdateEvent
Reports coverage delta since the last poll (either from an event like this, or from takePreciseCoverage for 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.
ProfileNode
Profile node. Holds callsite information, execution statistics and child nodes.
ScriptCoverage
Coverage data for a JavaScript script.
SetSamplingIntervalParams
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
StartParams
Parameters of Profiler.start.
StartPreciseCoverageParams
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.
StartPreciseCoverageReturns
What Profiler.startPreciseCoverage answers with.
StopParams
Parameters of Profiler.stop.
StopPreciseCoverageParams
Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
StopReturns
What Profiler.stop answers with.
TakePreciseCoverageParams
Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
TakePreciseCoverageReturns
What Profiler.takePreciseCoverage answers with.