Source File
types.go
Belonging Package
github.com/chromedp/cdproto/performance
package performance// Code generated by cdproto-gen. DO NOT EDIT.import ()// Metric run-time execution metric.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#type-Metrictype Metric struct {Name string `json:"name"` // Metric name.Value float64 `json:"value"` // Metric value.}// EnableTimeDomain time domain to use for collecting and reporting duration// metrics.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Performance#method-enabletype EnableTimeDomain string// String returns the EnableTimeDomain as string value.func ( EnableTimeDomain) () string {return string()}// EnableTimeDomain values.const (EnableTimeDomainTimeTicks EnableTimeDomain = "timeTicks"EnableTimeDomainThreadTicks EnableTimeDomain = "threadTicks")// MarshalEasyJSON satisfies easyjson.Marshaler.func ( EnableTimeDomain) ( *jwriter.Writer) {.String(string())}// MarshalJSON satisfies json.Marshaler.func ( EnableTimeDomain) () ([]byte, error) {return easyjson.Marshal()}// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.func ( *EnableTimeDomain) ( *jlexer.Lexer) {:= .String()switch EnableTimeDomain() {case EnableTimeDomainTimeTicks:* = EnableTimeDomainTimeTickscase EnableTimeDomainThreadTicks:* = EnableTimeDomainThreadTicksdefault:.AddError(fmt.Errorf("unknown EnableTimeDomain value: %v", ))}}// UnmarshalJSON satisfies json.Unmarshaler.func ( *EnableTimeDomain) ( []byte) error {return easyjson.Unmarshal(, )}
![]() |
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. |