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
Types
PerformanceTimeline.LargestContentfulPaint #
See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl
Type: object
Properties
renderTime
loadTime
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
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
sources
array[ LayoutShiftAttribution ]
PerformanceTimeline.LayoutShiftAttribution #
Type: object
Properties
previousRect
currentRect
nodeId
Optional
PerformanceTimeline.TimelineEvent #
Type: object
Properties
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
Time in seconds since Epoch, monotonically increasing within document lifetime.
duration
Optional
number
Event duration, if applicable.
lcpDetails
Optional
layoutShiftDetails
Optional