Class TimelineEvent


  • public class TimelineEvent
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Number> getDuration()
      Event duration, if applicable.
      FrameId getFrameId()
      Identifies the frame that this event is related to.
      java.util.Optional<LayoutShift> getLayoutShiftDetails()  
      java.util.Optional<LargestContentfulPaint> getLcpDetails()  
      java.lang.String getName()
      Name may be empty depending on the type.
      TimeSinceEpoch getTime()
      Time in seconds since Epoch, monotonically increasing within document lifetime.
      java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TimelineEvent

        public TimelineEvent​(FrameId frameId,
                             java.lang.String type,
                             java.lang.String name,
                             TimeSinceEpoch time,
                             java.util.Optional<java.lang.Number> duration,
                             java.util.Optional<LargestContentfulPaint> lcpDetails,
                             java.util.Optional<LayoutShift> layoutShiftDetails)
    • Method Detail

      • getFrameId

        public FrameId getFrameId()
        Identifies the frame that this event is related to. Empty for non-frame targets.
      • getType

        public java.lang.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.
      • getName

        public java.lang.String getName()
        Name may be empty depending on the type.
      • getTime

        public TimeSinceEpoch getTime()
        Time in seconds since Epoch, monotonically increasing within document lifetime.
      • getDuration

        public java.util.Optional<java.lang.Number> getDuration()
        Event duration, if applicable.
      • getLayoutShiftDetails

        public java.util.Optional<LayoutShift> getLayoutShiftDetails()