Profiler Domain
Methods
Events
Types
Methods
Profiler.disable #
Profiler.enable #
Profiler.setSamplingInterval #
Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
parameters
- interval
-
integer
New sampling interval in microseconds.
Profiler.start #
Events
Profiler.consoleProfileFinished #
parameters
- id
-
string
- location
-
Debugger.Location
Location of console.profileEnd().
- profile
-
Profile
- title
-
string
Profile title passed as an argument to console.profile().
Profiler.consoleProfileStarted #
Sent when new profile recodring is started using console.profile() call.
parameters
- id
-
string
- location
-
Debugger.Location
Location of console.profile().
- title
-
string
Profile title passed as an argument to console.profile().
Types
Profiler.Profile #
Profile.
Type: object
properties
- nodes
-
array[ ProfileNode ]
The list of profile nodes. First item is the root node.
- startTime
-
number
Profiling start timestamp in microseconds.
- endTime
-
number
Profiling end timestamp in microseconds.
- samples
-
array[ integer ]
Ids of samples top nodes.
- timeDeltas
-
array[ integer ]
Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
Profiler.ProfileNode #
Profile node. Holds callsite information, execution statistics and child nodes.
Type: object
properties
- id
-
integer
Unique id of the node.
- callFrame
-
Runtime.CallFrame
Function location.
- hitCount
-
integer
Number of samples where this node was on top of the call stack.
- children
-
array[ integer ]
Child node ids.
- deoptReason
-
string
The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
- positionTicks
-
array[ PositionTickInfo ]
An array of source position ticks.