Chrome DevTools

PerformanceTimeline Domain

Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.

Experimental

Methods

Events

Types

Methods

Chrome DevTools

PerformanceTimeline.enable #

Previously buffered events would be reported before method returns. See also: timelineEventAdded

Parameters

eventTypes
array[ string ]

The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.

Events

Chrome DevTools

PerformanceTimeline.timelineEventAdded #

Sent when a performance timeline event is added. See reportPerformanceTimeline method.

Parameters

Types

Chrome DevTools

PerformanceTimeline.LargestContentfulPaint #

See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl

Type: object

Properties

size
number

The number of pixels being painted.

elementId
Optional
string

The id attribute of the element, if available.

url
Optional
string

The URL of the image (may be trimmed).

nodeId
Optional

Chrome DevTools

PerformanceTimeline.LayoutShift #

See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl

Type: object

Properties

value
number

Score increment produced by this event.

hadRecentInput
boolean
sources

Chrome DevTools

PerformanceTimeline.LayoutShiftAttribution #

Type: object

Properties

previousRect
currentRect
nodeId
Optional

Chrome DevTools

PerformanceTimeline.TimelineEvent #

Type: object

Properties

frameId
Page.FrameId

Identifies the frame that this event is related to. Empty for non-frame targets.

type
string

The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional "details" fields is present.

name
string

Name may be empty depending on the type.

time
Network.TimeSinceEpoch

Time in seconds since Epoch, monotonically increasing within document lifetime.

duration
Optional
number

Event duration, if applicable.

lcpDetails
Optional
layoutShiftDetails
Optional