PerformanceTimeline Domain
Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.
Methods
Events
Types
Methods
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
PerformanceTimeline.timelineEventAdded #
Sent when a performance timeline event is added. See reportPerformanceTimeline method.
parameters
- event
-
TimelineEvent
Types
PerformanceTimeline.LargestContentfulPaint #
See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl
Type: object
properties
- renderTime
-
Network.TimeSinceEpoch
- loadTime
-
Network.TimeSinceEpoch
- size
-
number
The number of pixels being painted.
- elementId
-
string
The id attribute of the element, if available.
- url
-
string
The URL of the image (may be trimmed).
- nodeId
-
DOM.BackendNodeId
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
- lastInputTime
-
Network.TimeSinceEpoch
- sources
-
array[ LayoutShiftAttribution ]
PerformanceTimeline.LayoutShiftAttribution #
Type: object
properties
- previousRect
-
DOM.Rect
- currentRect
-
DOM.Rect
- nodeId
-
DOM.BackendNodeId
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
-
number
Event duration, if applicable.
- lcpDetails
-
LargestContentfulPaint
- layoutShiftDetails
-
LayoutShift