memory

package
v0.0.0-...-a72e670 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 7 Imported by: 4

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"
	CommandGetDOMCountersForLeakDetection     = "Memory.getDOMCountersForLeakDetection"
	CommandPrepareForLeakDetection            = "Memory.prepareForLeakDetection"
	CommandForciblyPurgeJavaScriptMemory      = "Memory.forciblyPurgeJavaScriptMemory"
	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 DOMCounter

type DOMCounter struct {
	Name  string `json:"name"`  // Object name. Note: object names should be presumed volatile and clients should not expect the returned names to be consistent across runs.
	Count int64  `json:"count"` // Object count.
}

DOMCounter DOM object counter data.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-DOMCounter

func (DOMCounter) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DOMCounter) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*DOMCounter) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DOMCounter) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type ForciblyPurgeJavaScriptMemoryParams

type ForciblyPurgeJavaScriptMemoryParams struct{}

ForciblyPurgeJavaScriptMemoryParams simulate OomIntervention by purging V8 memory.

func ForciblyPurgeJavaScriptMemory

func ForciblyPurgeJavaScriptMemory() *ForciblyPurgeJavaScriptMemoryParams

ForciblyPurgeJavaScriptMemory simulate OomIntervention by purging V8 memory.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-forciblyPurgeJavaScriptMemory

func (*ForciblyPurgeJavaScriptMemoryParams) Do

Do executes Memory.forciblyPurgeJavaScriptMemory against the provided context.

func (ForciblyPurgeJavaScriptMemoryParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ForciblyPurgeJavaScriptMemoryParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*ForciblyPurgeJavaScriptMemoryParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ForciblyPurgeJavaScriptMemoryParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-getAllTimeSamplingProfile

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-getBrowserSamplingProfile

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 GetDOMCountersForLeakDetectionParams

type GetDOMCountersForLeakDetectionParams struct{}

GetDOMCountersForLeakDetectionParams retruns DOM object counters after preparing renderer for leak detection.

func GetDOMCountersForLeakDetection

func GetDOMCountersForLeakDetection() *GetDOMCountersForLeakDetectionParams

GetDOMCountersForLeakDetection retruns DOM object counters after preparing renderer for leak detection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-getDOMCountersForLeakDetection

func (*GetDOMCountersForLeakDetectionParams) Do

Do executes Memory.getDOMCountersForLeakDetection against the provided context.

returns:

counters - DOM object counters.

func (GetDOMCountersForLeakDetectionParams) MarshalEasyJSON

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDOMCountersForLeakDetectionParams) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetDOMCountersForLeakDetectionParams) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDOMCountersForLeakDetectionParams) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetDOMCountersForLeakDetectionReturns

type GetDOMCountersForLeakDetectionReturns struct {
	Counters []*DOMCounter `json:"counters,omitempty"` // DOM object counters.
}

GetDOMCountersForLeakDetectionReturns return values.

func (GetDOMCountersForLeakDetectionReturns) MarshalEasyJSON

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDOMCountersForLeakDetectionReturns) MarshalJSON

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

MarshalJSON supports json.Marshaler interface

func (*GetDOMCountersForLeakDetectionReturns) UnmarshalEasyJSON

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDOMCountersForLeakDetectionReturns) UnmarshalJSON

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

UnmarshalJSON supports json.Unmarshaler interface

type GetDOMCountersParams

type GetDOMCountersParams struct{}

GetDOMCountersParams retruns current DOM object counters.

func GetDOMCounters

func GetDOMCounters() *GetDOMCountersParams

GetDOMCounters retruns current DOM object counters.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-getDOMCounters

func (*GetDOMCountersParams) Do

func (p *GetDOMCountersParams) Do(ctx context.Context) (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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-getSamplingProfile

func (*GetSamplingProfileParams) Do

func (p *GetSamplingProfileParams) Do(ctx context.Context) (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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-Module

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 prepares for leak detection by terminating workers, stopping spellcheckers, dropping non-essential internal caches, running garbage collections, etc.

func PrepareForLeakDetection

func PrepareForLeakDetection() *PrepareForLeakDetectionParams

PrepareForLeakDetection prepares for leak detection by terminating workers, stopping spellcheckers, dropping non-essential internal caches, running garbage collections, etc.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-prepareForLeakDetection

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-PressureLevel

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-SamplingProfile

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#type-SamplingProfileNode

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-setPressureNotificationsSuppressed

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-simulatePressureNotification

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-startSampling

parameters:

func (*StartSamplingParams) Do

func (p *StartSamplingParams) Do(ctx context.Context) (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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Memory#method-stopSampling

func (*StopSamplingParams) Do

func (p *StopSamplingParams) Do(ctx context.Context) (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