Source File
types.go
Belonging Package
github.com/chromedp/cdproto/performancetimeline
package performancetimeline// Code generated by cdproto-gen. DO NOT EDIT.import ()// LargestContentfulPaint see https://github.com/WICG/LargestContentfulPaint// and largest_contentful_paint.idl.//// See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#type-LargestContentfulPainttype LargestContentfulPaint struct {RenderTime *cdp.TimeSinceEpoch `json:"renderTime"`LoadTime *cdp.TimeSinceEpoch `json:"loadTime"`Size float64 `json:"size"` // The number of pixels being painted.ElementID string `json:"elementId,omitempty"` // The id attribute of the element, if available.URL string `json:"url,omitempty"` // The URL of the image (may be trimmed).NodeID cdp.BackendNodeID `json:"nodeId,omitempty"`}// LayoutShiftAttribution [no description].//// See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#type-LayoutShiftAttributiontype LayoutShiftAttribution struct {PreviousRect *dom.Rect `json:"previousRect"`CurrentRect *dom.Rect `json:"currentRect"`NodeID cdp.BackendNodeID `json:"nodeId,omitempty"`}// LayoutShift see// https://wicg.github.io/layout-instability/#sec-layout-shift and// layout_shift.idl.//// See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#type-LayoutShifttype LayoutShift struct {Value float64 `json:"value"` // Score increment produced by this event.HadRecentInput bool `json:"hadRecentInput"`LastInputTime *cdp.TimeSinceEpoch `json:"lastInputTime"`Sources []*LayoutShiftAttribution `json:"sources"`}// TimelineEvent [no description].//// See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#type-TimelineEventtype TimelineEvent struct {FrameID cdp.FrameID `json:"frameId"` // Identifies the frame that this event is related to. Empty for non-frame targets.Type string `json:"type"` // 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.Name string `json:"name"` // Name may be empty depending on the type.Time *cdp.TimeSinceEpoch `json:"time"` // Time in seconds since Epoch, monotonically increasing within document lifetime.Duration float64 `json:"duration,omitempty"` // Event duration, if applicable.LcpDetails *LargestContentfulPaint `json:"lcpDetails,omitempty"`LayoutShiftDetails *LayoutShift `json:"layoutShiftDetails,omitempty"`}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |