package performancetimeline
Import Path
github.com/chromedp/cdproto/performancetimeline (on go.dev)
Dependency Relation
imports 7 packages, and imported by one package
Involved Source Files
easyjson.go
events.go
Package performancetimeline provides the Chrome DevTools Protocol
commands, types, and events for the PerformanceTimeline domain.
Reporting of performance timeline events, as specified in
https://w3c.github.io/performance-timeline/#dom-performanceobserver.
Generated by the cdproto-gen command.
types.go
Package-Level Type Names (total 6)
EnableParams previously buffered events would be reported before method
returns. See also: timelineEventAdded.
// The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.
Do executes PerformanceTimeline.enable against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*EnableParams : github.com/chromedp/chromedp.Action
*EnableParams : github.com/chromedp/chromedp.CallAction
*EnableParams : github.com/chromedp/chromedp.EmulateAction
*EnableParams : github.com/chromedp/chromedp.EvaluateAction
*EnableParams : github.com/chromedp/chromedp.KeyAction
*EnableParams : github.com/chromedp/chromedp.MouseAction
*EnableParams : github.com/chromedp/chromedp.NavigateAction
*EnableParams : github.com/chromedp/chromedp.PollAction
*EnableParams : github.com/chromedp/chromedp.QueryAction
EnableParams : github.com/goccy/go-json.Marshaler
*EnableParams : github.com/goccy/go-json.Unmarshaler
EnableParams : github.com/mailru/easyjson.Marshaler
*EnableParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*EnableParams : github.com/mailru/easyjson.Unmarshaler
EnableParams : encoding/json.Marshaler
*EnableParams : encoding/json.Unmarshaler
func Enable(eventTypes []string) *EnableParams
EventTimelineEventAdded sent when a performance timeline event is added.
See reportPerformanceTimeline method.
See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#event-timelineEventAdded
Event *TimelineEvent
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventTimelineEventAdded : github.com/goccy/go-json.Marshaler
*EventTimelineEventAdded : github.com/goccy/go-json.Unmarshaler
EventTimelineEventAdded : github.com/mailru/easyjson.Marshaler
*EventTimelineEventAdded : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventTimelineEventAdded : github.com/mailru/easyjson.Unmarshaler
EventTimelineEventAdded : encoding/json.Marshaler
*EventTimelineEventAdded : encoding/json.Unmarshaler
LargestContentfulPaint see https://github.com/WICG/LargestContentfulPaint
and largest_contentful_paint.idl.
See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#type-LargestContentfulPaint
// The id attribute of the element, if available.
LoadTime *cdp.TimeSinceEpoch
NodeID cdp.BackendNodeID
RenderTime *cdp.TimeSinceEpoch
// The number of pixels being painted.
// The URL of the image (may be trimmed).
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
LargestContentfulPaint : github.com/goccy/go-json.Marshaler
*LargestContentfulPaint : github.com/goccy/go-json.Unmarshaler
LargestContentfulPaint : github.com/mailru/easyjson.Marshaler
*LargestContentfulPaint : github.com/mailru/easyjson.MarshalerUnmarshaler
*LargestContentfulPaint : github.com/mailru/easyjson.Unmarshaler
LargestContentfulPaint : encoding/json.Marshaler
*LargestContentfulPaint : encoding/json.Unmarshaler
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-LayoutShift
HadRecentInput bool
LastInputTime *cdp.TimeSinceEpoch
Sources []*LayoutShiftAttribution
// Score increment produced by this event.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
LayoutShift : github.com/goccy/go-json.Marshaler
*LayoutShift : github.com/goccy/go-json.Unmarshaler
LayoutShift : github.com/mailru/easyjson.Marshaler
*LayoutShift : github.com/mailru/easyjson.MarshalerUnmarshaler
*LayoutShift : github.com/mailru/easyjson.Unmarshaler
LayoutShift : encoding/json.Marshaler
*LayoutShift : encoding/json.Unmarshaler
LayoutShiftAttribution [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#type-LayoutShiftAttribution
CurrentRect *dom.Rect
NodeID cdp.BackendNodeID
PreviousRect *dom.Rect
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
LayoutShiftAttribution : github.com/goccy/go-json.Marshaler
*LayoutShiftAttribution : github.com/goccy/go-json.Unmarshaler
LayoutShiftAttribution : github.com/mailru/easyjson.Marshaler
*LayoutShiftAttribution : github.com/mailru/easyjson.MarshalerUnmarshaler
*LayoutShiftAttribution : github.com/mailru/easyjson.Unmarshaler
LayoutShiftAttribution : encoding/json.Marshaler
*LayoutShiftAttribution : encoding/json.Unmarshaler
TimelineEvent [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#type-TimelineEvent
// Event duration, if applicable.
// Identifies the frame that this event is related to. Empty for non-frame targets.
LayoutShiftDetails *LayoutShift
LcpDetails *LargestContentfulPaint
// Name may be empty depending on the type.
// Time in seconds since Epoch, monotonically increasing within document lifetime.
// 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.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
TimelineEvent : github.com/goccy/go-json.Marshaler
*TimelineEvent : github.com/goccy/go-json.Unmarshaler
TimelineEvent : github.com/mailru/easyjson.Marshaler
*TimelineEvent : github.com/mailru/easyjson.MarshalerUnmarshaler
*TimelineEvent : github.com/mailru/easyjson.Unmarshaler
TimelineEvent : encoding/json.Marshaler
*TimelineEvent : encoding/json.Unmarshaler
Package-Level Functions (only one)
Enable previously buffered events would be reported before method returns.
See also: timelineEventAdded.
See: https://chromedevtools.github.io/devtools-protocol/tot/PerformanceTimeline#method-enable
parameters:
eventTypes - The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.
Package-Level Constants (only one)
Command names.
![]() |
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. |