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 numberThe number of pixels being painted.
elementIdOptional
stringThe id attribute of the element, if available.
urlOptional
stringThe URL of the image (may be trimmed).
nodeIdOptional
PerformanceTimeline.LayoutShift #
See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl
Type: object
Properties
value numberScore increment produced by this event.
hadRecentInput booleanlastInputTime sources array[ LayoutShiftAttribution ]PerformanceTimeline.LayoutShiftAttribution #
Type: object
Properties
previousRect currentRect nodeIdOptional
PerformanceTimeline.TimelineEvent #
Type: object
Properties
frameId Identifies the frame that this event is related to. Empty for non-frame targets.
type stringThe 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 stringName may be empty depending on the type.
time Time in seconds since Epoch, monotonically increasing within document lifetime.
durationOptional
numberEvent duration, if applicable.
lcpDetailsOptional
layoutShiftDetailsOptional