TimelineEvent

@Serializable
data class TimelineEvent(val frameId: String, val type: String, val name: String, val time: Double, val duration: Double? = null, val lcpDetails: PerformanceTimeline.LargestContentfulPaint? = null, val layoutShiftDetails: PerformanceTimeline.LayoutShift? = null)

Constructors

Link copied to clipboard
constructor(frameId: String, type: String, name: String, time: Double, duration: Double? = null, lcpDetails: PerformanceTimeline.LargestContentfulPaint? = null, layoutShiftDetails: PerformanceTimeline.LayoutShift? = null)

Properties

Link copied to clipboard
val duration: Double? = null

Event duration, if applicable.

Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard

Name may be empty depending on the type.

Link copied to clipboard

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

Link copied to clipboard

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.