Documentation ¶
Overview ¶
Package performance provides the Chrome Debugging Protocol commands, types, and events for the Performance domain.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type DisableParams
- func (p *DisableParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DisableParams) MarshalJSON() ([]byte, error)
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DisableParams) UnmarshalJSON(data []byte) error
- type EnableParams
- type EventMetrics
- type GetMetricsParams
- func (p *GetMetricsParams) Do(ctxt context.Context, h cdp.Executor) (metrics []*Metric, err error)
- func (v GetMetricsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetMetricsParams) MarshalJSON() ([]byte, error)
- func (v *GetMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetMetricsParams) UnmarshalJSON(data []byte) error
- type GetMetricsReturns
- type Metric
Constants ¶
const ( CommandDisable = "Performance.disable" CommandEnable = "Performance.enable" CommandGetMetrics = "Performance.getMetrics" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisableParams ¶
type DisableParams struct{}
DisableParams disable collecting and reporting metrics.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams enable collecting and reporting metrics.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventMetrics ¶
type EventMetrics struct { Metrics []*Metric `json:"metrics"` // Current values of the metrics. Title string `json:"title"` // Timestamp title. }
EventMetrics current values of the metrics.
func (EventMetrics) MarshalEasyJSON ¶
func (v EventMetrics) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventMetrics) MarshalJSON ¶
func (v EventMetrics) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventMetrics) UnmarshalEasyJSON ¶
func (v *EventMetrics) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventMetrics) UnmarshalJSON ¶
func (v *EventMetrics) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetMetricsParams ¶
type GetMetricsParams struct{}
GetMetricsParams retrieve current values of run-time metrics.
func GetMetrics ¶
func GetMetrics() *GetMetricsParams
GetMetrics retrieve current values of run-time metrics.
func (*GetMetricsParams) Do ¶
Do executes Performance.getMetrics against the provided context.
returns:
metrics - Current values for run-time metrics.
func (GetMetricsParams) MarshalEasyJSON ¶
func (v GetMetricsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetMetricsParams) MarshalJSON ¶
func (v GetMetricsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetMetricsParams) UnmarshalEasyJSON ¶
func (v *GetMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetMetricsParams) UnmarshalJSON ¶
func (v *GetMetricsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetMetricsReturns ¶
type GetMetricsReturns struct {
Metrics []*Metric `json:"metrics,omitempty"` // Current values for run-time metrics.
}
GetMetricsReturns return values.
func (GetMetricsReturns) MarshalEasyJSON ¶
func (v GetMetricsReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetMetricsReturns) MarshalJSON ¶
func (v GetMetricsReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetMetricsReturns) UnmarshalEasyJSON ¶
func (v *GetMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetMetricsReturns) UnmarshalJSON ¶
func (v *GetMetricsReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Metric ¶
type Metric struct { Name string `json:"name"` // Metric name. Value float64 `json:"value"` // Metric value. }
Metric run-time execution metric.
func (Metric) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Metric) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Metric) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Metric) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface