memory

package
v0.0.0-...-7421a99 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2017 License: MIT Imports: 7 Imported by: 0

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

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 GetDOMCounters

func GetDOMCounters() *GetDOMCountersParams

GetDOMCounters [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

Do executes Memory.setPressureNotificationsSuppressed.

func (SetPressureNotificationsSuppressedParams) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPressureNotificationsSuppressedParams) MarshalJSON

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL