struct Protocol::PerformanceTimeline::TimelineEvent

Included Modules

Defined in:

protocol/performance_timeline.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def duration : Number::Primitive | Nil #

Event duration, if applicable.


[View source]
def frame_id : Page::FrameId #

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


[View source]
def layout_shift_details : LayoutShift | Nil #

[View source]
def lcp_details : LargestContentfulPaint | Nil #

[View source]
def name : String #

Name may be empty depending on the type.


[View source]

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


[View source]
def 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.


[View source]