Documentation ¶
Overview ¶
Package memory provides the Chrome Debugging Protocol commands, types, and events for the Chrome Memory domain.
Generated by the chromedp-gen command.
Index ¶
- type GetDOMCountersParams
- func (p *GetDOMCountersParams) Do(ctxt context.Context, h cdp.FrameHandler) (documents int64, nodes int64, jsEventListeners int64, err error)
- func (v GetDOMCountersParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetDOMCountersParams) MarshalJSON() ([]byte, error)
- func (v *GetDOMCountersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetDOMCountersParams) UnmarshalJSON(data []byte) error
- type GetDOMCountersReturns
- type PressureLevel
- type SetPressureNotificationsSuppressedParams
- func (p *SetPressureNotificationsSuppressedParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SetPressureNotificationsSuppressedParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SetPressureNotificationsSuppressedParams) MarshalJSON() ([]byte, error)
- func (v *SetPressureNotificationsSuppressedParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SetPressureNotificationsSuppressedParams) UnmarshalJSON(data []byte) error
- type SimulatePressureNotificationParams
- func (p *SimulatePressureNotificationParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v SimulatePressureNotificationParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v SimulatePressureNotificationParams) MarshalJSON() ([]byte, error)
- func (v *SimulatePressureNotificationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *SimulatePressureNotificationParams) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetDOMCountersParams ¶
type GetDOMCountersParams struct{}
GetDOMCountersParams [no description].
func (*GetDOMCountersParams) Do ¶
func (p *GetDOMCountersParams) Do(ctxt context.Context, h cdp.FrameHandler) (documents int64, nodes int64, jsEventListeners int64, err error)
Do executes Memory.getDOMCounters.
returns:
documents nodes jsEventListeners
func (GetDOMCountersParams) MarshalEasyJSON ¶
func (v GetDOMCountersParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDOMCountersParams) MarshalJSON ¶
func (v GetDOMCountersParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDOMCountersParams) UnmarshalEasyJSON ¶
func (v *GetDOMCountersParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDOMCountersParams) UnmarshalJSON ¶
func (v *GetDOMCountersParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetDOMCountersReturns ¶
type GetDOMCountersReturns struct { Documents int64 `json:"documents,omitempty"` Nodes int64 `json:"nodes,omitempty"` JsEventListeners int64 `json:"jsEventListeners,omitempty"` }
GetDOMCountersReturns return values.
func (GetDOMCountersReturns) MarshalEasyJSON ¶
func (v GetDOMCountersReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDOMCountersReturns) MarshalJSON ¶
func (v GetDOMCountersReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDOMCountersReturns) UnmarshalEasyJSON ¶
func (v *GetDOMCountersReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDOMCountersReturns) UnmarshalJSON ¶
func (v *GetDOMCountersReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type PressureLevel ¶
type PressureLevel string
PressureLevel memory pressure level.
const ( PressureLevelModerate PressureLevel = "moderate" PressureLevelCritical PressureLevel = "critical" )
PressureLevel values.
func (PressureLevel) MarshalEasyJSON ¶
func (t PressureLevel) MarshalEasyJSON(out *jwriter.Writer)
MarshalEasyJSON satisfies easyjson.Marshaler.
func (PressureLevel) MarshalJSON ¶
func (t PressureLevel) MarshalJSON() ([]byte, error)
MarshalJSON satisfies json.Marshaler.
func (PressureLevel) String ¶
func (t PressureLevel) String() string
String returns the PressureLevel as string value.
func (*PressureLevel) UnmarshalEasyJSON ¶
func (t *PressureLevel) UnmarshalEasyJSON(in *jlexer.Lexer)
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
func (*PressureLevel) UnmarshalJSON ¶
func (t *PressureLevel) UnmarshalJSON(buf []byte) error
UnmarshalJSON satisfies json.Unmarshaler.
type SetPressureNotificationsSuppressedParams ¶
type SetPressureNotificationsSuppressedParams struct {
Suppressed bool `json:"suppressed"` // If true, memory pressure notifications will be suppressed.
}
SetPressureNotificationsSuppressedParams enable/disable suppressing memory pressure notifications in all processes.
func SetPressureNotificationsSuppressed ¶
func SetPressureNotificationsSuppressed(suppressed bool) *SetPressureNotificationsSuppressedParams
SetPressureNotificationsSuppressed enable/disable suppressing memory pressure notifications in all processes.
parameters:
suppressed - If true, memory pressure notifications will be suppressed.
func (*SetPressureNotificationsSuppressedParams) Do ¶
func (p *SetPressureNotificationsSuppressedParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes Memory.setPressureNotificationsSuppressed.
func (SetPressureNotificationsSuppressedParams) MarshalEasyJSON ¶
func (v SetPressureNotificationsSuppressedParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SetPressureNotificationsSuppressedParams) MarshalJSON ¶
func (v SetPressureNotificationsSuppressedParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SetPressureNotificationsSuppressedParams) UnmarshalEasyJSON ¶
func (v *SetPressureNotificationsSuppressedParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SetPressureNotificationsSuppressedParams) UnmarshalJSON ¶
func (v *SetPressureNotificationsSuppressedParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SimulatePressureNotificationParams ¶
type SimulatePressureNotificationParams struct {
Level PressureLevel `json:"level"` // Memory pressure level of the notification.
}
SimulatePressureNotificationParams simulate a memory pressure notification in all processes.
func SimulatePressureNotification ¶
func SimulatePressureNotification(level PressureLevel) *SimulatePressureNotificationParams
SimulatePressureNotification simulate a memory pressure notification in all processes.
parameters:
level - Memory pressure level of the notification.
func (*SimulatePressureNotificationParams) Do ¶
func (p *SimulatePressureNotificationParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes Memory.simulatePressureNotification.
func (SimulatePressureNotificationParams) MarshalEasyJSON ¶
func (v SimulatePressureNotificationParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SimulatePressureNotificationParams) MarshalJSON ¶
func (v SimulatePressureNotificationParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SimulatePressureNotificationParams) UnmarshalEasyJSON ¶
func (v *SimulatePressureNotificationParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SimulatePressureNotificationParams) UnmarshalJSON ¶
func (v *SimulatePressureNotificationParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface