import "github.com/chromedp/cdproto/performance"
Package performance provides the Chrome DevTools Protocol commands, types, and events for the Performance domain.
Generated by the cdproto-gen command.
easyjson.go events.go performance.go types.go
const ( CommandDisable = "Performance.disable" CommandEnable = "Performance.enable" CommandGetMetrics = "Performance.getMetrics" )
Command names.
type DisableParams struct{}
DisableParams disable collecting and reporting metrics.
func Disable() *DisableParams
Disable disable collecting and reporting metrics.
See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#method-disable
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes Performance.disable against the provided context.
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams struct { TimeDomain EnableTimeDomain `json:"timeDomain,omitempty"` // Time domain to use for collecting and reporting duration metrics. }
EnableParams enable collecting and reporting metrics.
func Enable() *EnableParams
Enable enable collecting and reporting metrics.
See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#method-enable
parameters:
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes Performance.enable against the provided context.
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p EnableParams) WithTimeDomain(timeDomain EnableTimeDomain) *EnableParams
WithTimeDomain time domain to use for collecting and reporting duration metrics.
EnableTimeDomain time domain to use for collecting and reporting duration metrics.
See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#method-enable
const ( EnableTimeDomainTimeTicks EnableTimeDomain = "timeTicks" EnableTimeDomainThreadTicks EnableTimeDomain = "threadTicks" )
EnableTimeDomain values.
func (t EnableTimeDomain) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (t EnableTimeDomain) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (t EnableTimeDomain) String() string
String returns the EnableTimeDomain as string value.
func (t *EnableTimeDomain) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (t *EnableTimeDomain) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type EventMetrics struct { Metrics []*Metric `json:"metrics"` // Current values of the metrics. Title string `json:"title"` // Timestamp title. }
EventMetrics current values of the metrics.
See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#event-metrics
func (v EventMetrics) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventMetrics) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventMetrics) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventMetrics) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetMetricsParams struct{}
GetMetricsParams retrieve current values of run-time metrics.
func GetMetrics() *GetMetricsParams
GetMetrics retrieve current values of run-time metrics.
See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#method-getMetrics
Do executes Performance.getMetrics against the provided context.
returns:
metrics - Current values for run-time metrics.
func (v GetMetricsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetMetricsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetMetricsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetMetricsReturns struct { Metrics []*Metric `json:"metrics,omitempty"` // Current values for run-time metrics. }
GetMetricsReturns return values.
func (v GetMetricsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetMetricsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetMetricsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Metric struct { Name string `json:"name"` // Metric name. Value float64 `json:"value"` // Metric value. }
Metric run-time execution metric.
See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#type-Metric
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
Package performance imports 7 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.