TimelineEvent

data class TimelineEvent(frameId: FrameId, type: String, name: String, time: TimeSinceEpoch, duration: Double?, lcpDetails: LargestContentfulPaint?, layoutShiftDetails: LayoutShift?)

Constructors

TimelineEvent
Link copied to clipboard
fun TimelineEvent(frameId: FrameId, type: String, name: String, time: TimeSinceEpoch, duration: Double? = null, lcpDetails: LargestContentfulPaint? = null, layoutShiftDetails: LayoutShift? = null)

Properties

duration
Link copied to clipboard
val duration: Double? = null
Event duration, if applicable.
frameId
Link copied to clipboard
val frameId: FrameId
Identifies the frame that this event is related to.
layoutShiftDetails
Link copied to clipboard
val layoutShiftDetails: LayoutShift? = null
lcpDetails
Link copied to clipboard
val lcpDetails: LargestContentfulPaint? = null
name
Link copied to clipboard
val name: String
Name may be empty depending on the type.
time
Link copied to clipboard
val time: TimeSinceEpoch
Time in seconds since Epoch, monotonically increasing within document lifetime.
type
Link copied to clipboard
val type: String
The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype This determines which of the optional "details" fiedls is present.

Sources

jvm source
Link copied to clipboard