You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3.1 KiB

Timeline

_Auto generated documentation for WebKit inspector

Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.

Commands

Timeline.start([maxCallStackDepth], callback)

Starts capturing instrumentation events.

Parameters

maxCallStackDepth ( optional integer )

Samples JavaScript stack traces up to maxCallStackDepth, defaults to 5.

callback ( function )

Results

error ( error )

Timeline.stop(callback)

Stops capturing instrumentation events.

Parameters

callback ( function )

Results

error ( error )

Events

Event: eventRecorded

Fired for every instrumentation event while timeline is started.

Results

record ( TimelineEvent )

Timeline event record data.

Event: recordingStarted

Fired when recording has started.

Event: recordingStopped

Fired when recording has stopped.

Types

Class: EventType

Type: string

Timeline record type.

Class: TimelineEvent

Type: object

Timeline record contains information about the recorded activity.

Properties

type ( EventType )

Event type.

data ( object )

Event data.

children ( optional array of TimelineEvent )

Nested records.

Class: CPUProfileNodeCall

Type: object

CPU Profile call info. Holds time information for a specific call that happened on a node.

Properties

startTime ( number )

Start time for the call.

totalTime ( number )

Total execution time for the call.

Class: CPUProfileNode

Type: object

CPU Profile node. Holds callsite information, execution statistics and child nodes.

Properties

id ( integer )

Unique identifier for this call site.

calls ( array of CPUProfileNodeCall )

Calls making up this node.

functionName ( optional string )

Function name.

url ( optional string )

URL.

lineNumber ( optional integer )

Line number.

columnNumber ( optional integer )

Column number.

children ( optional array of CPUProfileNode )

Child nodes.

Class: CPUProfile

Type: object

Profile.

Properties

rootNodes ( array of CPUProfileNode )

Top level nodes in the stack.

idleTime ( optional number )