Methods

Chrome DevTools

Profiler.disable #


Chrome DevTools

Profiler.enable #


Chrome DevTools

Profiler.setSamplingInterval #

Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

Parameters

interval
integer

New sampling interval in microseconds.


HermesHermes (Legacy)Chrome DevTools

Profiler.start #


HermesHermes (Legacy)Chrome DevTools

Profiler.stop #

Return object

profile
Profile

Recorded profile.

Events

Chrome DevTools

Profiler.consoleProfileFinished #

Parameters

id
string
location
Debugger.Location

Location of console.profileEnd().

profile
title
Optional
string

Profile title passed as an argument to console.profile().


Chrome DevTools

Profiler.consoleProfileStarted #

Sent when new profile recodring is started using console.profile() call.

Parameters

id
string
location
Debugger.Location

Location of console.profile().

title
Optional
string

Profile title passed as an argument to console.profile().

Types

HermesHermes (Legacy)Chrome DevTools

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
Optional
array[ integer ]

Ids of samples top nodes.

timeDeltas
Optional
array[ integer ]

Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.


HermesHermes (Legacy)Chrome DevTools

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
Optional
integer

Number of samples where this node was on top of the call stack.

Experimental
children
Optional
array[ integer ]

Child node ids.

deoptReason
Optional
string

The reason of being not optimized. The function may be deoptimized or marked as don't optimize.

positionTicks
Optional
array[ PositionTickInfo ]

An array of source position ticks.

Experimental