Source File
types.go
Belonging Package
github.com/chromedp/cdproto/memory
package memory// Code generated by cdproto-gen. DO NOT EDIT.import ()// PressureLevel memory pressure level.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-PressureLeveltype PressureLevel string// String returns the PressureLevel as string value.func ( PressureLevel) () string {return string()}// PressureLevel values.const (PressureLevelModerate PressureLevel = "moderate"PressureLevelCritical PressureLevel = "critical")// MarshalEasyJSON satisfies easyjson.Marshaler.func ( PressureLevel) ( *jwriter.Writer) {.String(string())}// MarshalJSON satisfies json.Marshaler.func ( PressureLevel) () ([]byte, error) {return easyjson.Marshal()}// UnmarshalEasyJSON satisfies easyjson.Unmarshaler.func ( *PressureLevel) ( *jlexer.Lexer) {:= .String()switch PressureLevel() {case PressureLevelModerate:* = PressureLevelModeratecase PressureLevelCritical:* = PressureLevelCriticaldefault:.AddError(fmt.Errorf("unknown PressureLevel value: %v", ))}}// UnmarshalJSON satisfies json.Unmarshaler.func ( *PressureLevel) ( []byte) error {return easyjson.Unmarshal(, )}// SamplingProfileNode heap profile sample.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-SamplingProfileNodetype SamplingProfileNode struct {Size float64 `json:"size"` // Size of the sampled allocation.Total float64 `json:"total"` // Total bytes attributed to this sample.Stack []string `json:"stack"` // Execution stack at the point of allocation.}// SamplingProfile array of heap profile samples.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-SamplingProfiletype SamplingProfile struct {Samples []*SamplingProfileNode `json:"samples"`Modules []*Module `json:"modules"`}// Module executable module information.//// See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-Moduletype Module struct {Name string `json:"name"` // Name of the module.UUID string `json:"uuid"` // UUID of the module.BaseAddress string `json:"baseAddress"` // Base address where the module is loaded into memory. Encoded as a decimal or hexadecimal (0x prefixed) string.Size float64 `json:"size"` // Size of the module in bytes.}
![]() |
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. |