memory

package
v0.0.0-...-418ac89 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package memory provides the Chrome DevTools Protocol commands, types, and events for the Memory domain.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandGetDOMCounters                     = "Memory.getDOMCounters"
	CommandPrepareForLeakDetection            = "Memory.prepareForLeakDetection"
	CommandSetPressureNotificationsSuppressed = "Memory.setPressureNotificationsSuppressed"
	CommandSimulatePressureNotification       = "Memory.simulatePressureNotification"
	CommandStartSampling                      = "Memory.startSampling"
	CommandStopSampling                       = "Memory.stopSampling"
	CommandGetAllTimeSamplingProfile          = "Memory.getAllTimeSamplingProfile"
	CommandGetBrowserSamplingProfile          = "Memory.getBrowserSamplingProfile"
	CommandGetSamplingProfile                 = "Memory.getSamplingProfile"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAllTimeSamplingProfileParams

type GetAllTimeSamplingProfileParams struct{}

GetAllTimeSamplingProfileParams retrieve native memory allocations profile collected since renderer process startup.

func GetAllTimeSamplingProfile

func GetAllTimeSamplingProfile() *GetAllTimeSamplingProfileParams

GetAllTimeSamplingProfile retrieve native memory allocations profile collected since renderer process startup.

func (*GetAllTimeSamplingProfileParams) Do

Do executes Memory.getAllTimeSamplingProfile against the provided context.

returns:

profile

func (GetAllTimeSamplingProfileParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAllTimeSamplingProfileParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetAllTimeSamplingProfileParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAllTimeSamplingProfileParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetAllTimeSamplingProfileReturns

type GetAllTimeSamplingProfileReturns struct {
	Profile *SamplingProfile `json:"profile,omitempty"`
}

GetAllTimeSamplingProfileReturns return values.

func (GetAllTimeSamplingProfileReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAllTimeSamplingProfileReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetAllTimeSamplingProfileReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAllTimeSamplingProfileReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetBrowserSamplingProfileParams

type GetBrowserSamplingProfileParams struct{}

GetBrowserSamplingProfileParams retrieve native memory allocations profile collected since browser process startup.

func GetBrowserSamplingProfile

func GetBrowserSamplingProfile() *GetBrowserSamplingProfileParams

GetBrowserSamplingProfile retrieve native memory allocations profile collected since browser process startup.

func (*GetBrowserSamplingProfileParams) Do

Do executes Memory.getBrowserSamplingProfile against the provided context.

returns:

profile

func (GetBrowserSamplingProfileParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBrowserSamplingProfileParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetBrowserSamplingProfileParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBrowserSamplingProfileParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetBrowserSamplingProfileReturns

type GetBrowserSamplingProfileReturns struct {
	Profile *SamplingProfile `json:"profile,omitempty"`
}

GetBrowserSamplingProfileReturns return values.

func (GetBrowserSamplingProfileReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBrowserSamplingProfileReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetBrowserSamplingProfileReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBrowserSamplingProfileReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

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.Executor) (documents int64, nodes int64, jsEventListeners int64, err error)

Do executes Memory.getDOMCounters against the provided context.

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 GetSamplingProfileParams

type GetSamplingProfileParams struct{}

GetSamplingProfileParams retrieve native memory allocations profile collected since last startSampling call.

func GetSamplingProfile

func GetSamplingProfile() *GetSamplingProfileParams

GetSamplingProfile retrieve native memory allocations profile collected since last startSampling call.

func (*GetSamplingProfileParams) Do

func (p *GetSamplingProfileParams) Do(ctxt context.Context, h cdp.Executor) (profile *SamplingProfile, err error)

Do executes Memory.getSamplingProfile against the provided context.

returns:

profile

func (GetSamplingProfileParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSamplingProfileParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetSamplingProfileParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSamplingProfileParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetSamplingProfileReturns

type GetSamplingProfileReturns struct {
	Profile *SamplingProfile `json:"profile,omitempty"`
}

GetSamplingProfileReturns return values.

func (GetSamplingProfileReturns) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSamplingProfileReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetSamplingProfileReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSamplingProfileReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type Module

type 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.
}

Module executable module information.

func (Module) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Module) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*Module) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Module) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type PrepareForLeakDetectionParams

type PrepareForLeakDetectionParams struct{}

PrepareForLeakDetectionParams [no description].

func PrepareForLeakDetection

func PrepareForLeakDetection() *PrepareForLeakDetectionParams

PrepareForLeakDetection [no description].

func (*PrepareForLeakDetectionParams) Do

Do executes Memory.prepareForLeakDetection against the provided context.

func (PrepareForLeakDetectionParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (PrepareForLeakDetectionParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*PrepareForLeakDetectionParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PrepareForLeakDetectionParams) UnmarshalJSON

func (v *PrepareForLeakDetectionParams) 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 SamplingProfile

type SamplingProfile struct {
	Samples []*SamplingProfileNode `json:"samples"`
	Modules []*Module              `json:"modules"`
}

SamplingProfile array of heap profile samples.

func (SamplingProfile) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SamplingProfile) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SamplingProfile) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SamplingProfile) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type SamplingProfileNode

type 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.
}

SamplingProfileNode heap profile sample.

func (SamplingProfileNode) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SamplingProfileNode) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*SamplingProfileNode) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SamplingProfileNode) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

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 against the provided context.

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 against the provided context.

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

type StartSamplingParams

type StartSamplingParams struct {
	SamplingInterval   int64 `json:"samplingInterval,omitempty"`   // Average number of bytes between samples.
	SuppressRandomness bool  `json:"suppressRandomness,omitempty"` // Do not randomize intervals between samples.
}

StartSamplingParams start collecting native memory profile.

func StartSampling

func StartSampling() *StartSamplingParams

StartSampling start collecting native memory profile.

parameters:

func (*StartSamplingParams) Do

func (p *StartSamplingParams) Do(ctxt context.Context, h cdp.Executor) (err error)

Do executes Memory.startSampling against the provided context.

func (StartSamplingParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartSamplingParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StartSamplingParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartSamplingParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

func (StartSamplingParams) WithSamplingInterval

func (p StartSamplingParams) WithSamplingInterval(samplingInterval int64) *StartSamplingParams

WithSamplingInterval average number of bytes between samples.

func (StartSamplingParams) WithSuppressRandomness

func (p StartSamplingParams) WithSuppressRandomness(suppressRandomness bool) *StartSamplingParams

WithSuppressRandomness do not randomize intervals between samples.

type StopSamplingParams

type StopSamplingParams struct{}

StopSamplingParams stop collecting native memory profile.

func StopSampling

func StopSampling() *StopSamplingParams

StopSampling stop collecting native memory profile.

func (*StopSamplingParams) Do

func (p *StopSamplingParams) Do(ctxt context.Context, h cdp.Executor) (err error)

Do executes Memory.stopSampling against the provided context.

func (StopSamplingParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopSamplingParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*StopSamplingParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopSamplingParams) UnmarshalJSON

func (v *StopSamplingParams) 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