cdproto: github.com/chromedp/cdproto/performance Index | Files

package performance

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.

Index

Package Files

easyjson.go events.go performance.go types.go

Constants

const (
    CommandDisable    = "Performance.disable"
    CommandEnable     = "Performance.enable"
    CommandGetMetrics = "Performance.getMetrics"
)

Command names.

type DisableParams Uses

type DisableParams struct{}

DisableParams disable collecting and reporting metrics.

func Disable Uses

func Disable() *DisableParams

Disable disable collecting and reporting metrics.

See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Performance.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

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 Uses

func Enable() *EnableParams

Enable enable collecting and reporting metrics.

See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#method-enable

parameters:

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes Performance.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (EnableParams) WithTimeDomain Uses

func (p EnableParams) WithTimeDomain(timeDomain EnableTimeDomain) *EnableParams

WithTimeDomain time domain to use for collecting and reporting duration metrics.

type EnableTimeDomain Uses

type EnableTimeDomain string

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 (EnableTimeDomain) MarshalEasyJSON Uses

func (t EnableTimeDomain) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (EnableTimeDomain) MarshalJSON Uses

func (t EnableTimeDomain) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (EnableTimeDomain) String Uses

func (t EnableTimeDomain) String() string

String returns the EnableTimeDomain as string value.

func (*EnableTimeDomain) UnmarshalEasyJSON Uses

func (t *EnableTimeDomain) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*EnableTimeDomain) UnmarshalJSON Uses

func (t *EnableTimeDomain) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type EventMetrics Uses

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 (EventMetrics) MarshalEasyJSON Uses

func (v EventMetrics) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventMetrics) MarshalJSON Uses

func (v EventMetrics) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventMetrics) UnmarshalEasyJSON Uses

func (v *EventMetrics) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventMetrics) UnmarshalJSON Uses

func (v *EventMetrics) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetMetricsParams Uses

type GetMetricsParams struct{}

GetMetricsParams retrieve current values of run-time metrics.

func GetMetrics Uses

func GetMetrics() *GetMetricsParams

GetMetrics retrieve current values of run-time metrics.

See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#method-getMetrics

func (*GetMetricsParams) Do Uses

func (p *GetMetricsParams) Do(ctx context.Context) (metrics []*Metric, err error)

Do executes Performance.getMetrics against the provided context.

returns:

metrics - Current values for run-time metrics.

func (GetMetricsParams) MarshalEasyJSON Uses

func (v GetMetricsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetMetricsParams) MarshalJSON Uses

func (v GetMetricsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetMetricsParams) UnmarshalEasyJSON Uses

func (v *GetMetricsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetMetricsParams) UnmarshalJSON Uses

func (v *GetMetricsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetMetricsReturns Uses

type GetMetricsReturns struct {
    Metrics []*Metric `json:"metrics,omitempty"` // Current values for run-time metrics.
}

GetMetricsReturns return values.

func (GetMetricsReturns) MarshalEasyJSON Uses

func (v GetMetricsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetMetricsReturns) MarshalJSON Uses

func (v GetMetricsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetMetricsReturns) UnmarshalEasyJSON Uses

func (v *GetMetricsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetMetricsReturns) UnmarshalJSON Uses

func (v *GetMetricsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Metric Uses

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

func (Metric) MarshalEasyJSON Uses

func (v Metric) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Metric) MarshalJSON Uses

func (v Metric) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Metric) UnmarshalEasyJSON Uses

func (v *Metric) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Metric) UnmarshalJSON Uses

func (v *Metric) UnmarshalJSON(data []byte) error

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.