-
public final class TimelineEvent
-
-
Field Summary
Fields Modifier and Type Field Description private final StringframeIdprivate final Stringtypeprivate final Stringnameprivate final Doubletimeprivate final Doubledurationprivate final LargestContentfulPaintlcpDetailsprivate final LayoutShiftlayoutShiftDetails
-
Constructor Summary
Constructors Constructor Description TimelineEvent(String frameId, String type, String name, Double time, Double duration, LargestContentfulPaint lcpDetails, LayoutShift layoutShiftDetails)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final Doublecomponent4()final Doublecomponent5()final LargestContentfulPaintcomponent6()final LayoutShiftcomponent7()final TimelineEventcopy(String frameId, String type, String name, Double time, Double duration, LargestContentfulPaint lcpDetails, LayoutShift layoutShiftDetails)final StringgetFrameId()Identifies the frame that this event is related to. final StringgetType()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. final StringgetName()Name may be empty depending on the type. final DoublegetTime()Time in seconds since Epoch, monotonically increasing within document lifetime. final DoublegetDuration()Event duration, if applicable. final LargestContentfulPaintgetLcpDetails()final LayoutShiftgetLayoutShiftDetails()-
-
Constructor Detail
-
TimelineEvent
TimelineEvent(String frameId, String type, String name, Double time, Double duration, LargestContentfulPaint lcpDetails, LayoutShift layoutShiftDetails)
-
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final Double component4()
-
component5
final Double component5()
-
component6
final LargestContentfulPaint component6()
-
component7
final LayoutShift component7()
-
copy
final TimelineEvent copy(String frameId, String type, String name, Double time, Double duration, LargestContentfulPaint lcpDetails, LayoutShift layoutShiftDetails)
-
getFrameId
final String getFrameId()
Identifies the frame that this event is related to. Empty for non-frame targets.
-
getType
final String getType()
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.
-
getTime
final Double getTime()
Time in seconds since Epoch, monotonically increasing within document lifetime.
-
getDuration
final Double getDuration()
Event duration, if applicable.
-
getLcpDetails
final LargestContentfulPaint getLcpDetails()
-
getLayoutShiftDetails
final LayoutShift getLayoutShiftDetails()
-
-
-
-