1.0: Timeline
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
request: {
"id": <number>,
"method": "Timeline.start",
"params": {
"maxCallStackDepth": <integer>
}
"id": <number>,
"error": <object>
"id": <number>,
"method": "Timeline.start",
"params": {
"maxCallStackDepth": <integer>
}
}
response: {"id": <number>,
"error": <object>
}
Starts capturing instrumentation events.
Parameters
maxCallStackDepth
(
optional
integer
)
Samples JavaScript stack traces up to
maxCallStackDepth
, defaults to 5.
Notifications
Timeline.eventRecorded
Fired for every instrumentation event while timeline is started.
Parameters
record
(
TimelineEvent
)
Timeline event record data.
Types
TimelineEvent: object
children
(
optional
array of TimelineEvent
)
Nested records.
data
(
object
)
Event data.
type
(
string
)
Event type.