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
- type GetAllTimeSamplingProfileParams
- func (p *GetAllTimeSamplingProfileParams) Do(ctxt context.Context, h cdp.Executor) (profile *SamplingProfile, err error)
- func (v GetAllTimeSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetAllTimeSamplingProfileParams) MarshalJSON() ([]byte, error)
- func (v *GetAllTimeSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetAllTimeSamplingProfileParams) UnmarshalJSON(data []byte) error
- type GetAllTimeSamplingProfileReturns
- func (v GetAllTimeSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetAllTimeSamplingProfileReturns) MarshalJSON() ([]byte, error)
- func (v *GetAllTimeSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetAllTimeSamplingProfileReturns) UnmarshalJSON(data []byte) error
- type GetBrowserSamplingProfileParams
- func (p *GetBrowserSamplingProfileParams) Do(ctxt context.Context, h cdp.Executor) (profile *SamplingProfile, err error)
- func (v GetBrowserSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetBrowserSamplingProfileParams) MarshalJSON() ([]byte, error)
- func (v *GetBrowserSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetBrowserSamplingProfileParams) UnmarshalJSON(data []byte) error
- type GetBrowserSamplingProfileReturns
- func (v GetBrowserSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetBrowserSamplingProfileReturns) MarshalJSON() ([]byte, error)
- func (v *GetBrowserSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetBrowserSamplingProfileReturns) UnmarshalJSON(data []byte) error
- type GetDOMCountersParams
- func (p *GetDOMCountersParams) Do(ctxt context.Context, h cdp.Executor) (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 GetSamplingProfileParams
- func (p *GetSamplingProfileParams) Do(ctxt context.Context, h cdp.Executor) (profile *SamplingProfile, err error)
- func (v GetSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetSamplingProfileParams) MarshalJSON() ([]byte, error)
- func (v *GetSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetSamplingProfileParams) UnmarshalJSON(data []byte) error
- type GetSamplingProfileReturns
- type Module
- type PrepareForLeakDetectionParams
- func (p *PrepareForLeakDetectionParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v PrepareForLeakDetectionParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v PrepareForLeakDetectionParams) MarshalJSON() ([]byte, error)
- func (v *PrepareForLeakDetectionParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *PrepareForLeakDetectionParams) UnmarshalJSON(data []byte) error
- type PressureLevel
- type SamplingProfile
- type SamplingProfileNode
- type SetPressureNotificationsSuppressedParams
- func (p *SetPressureNotificationsSuppressedParams) Do(ctxt context.Context, h cdp.Executor) (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.Executor) (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
- type StartSamplingParams
- func (p *StartSamplingParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StartSamplingParams) MarshalJSON() ([]byte, error)
- func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StartSamplingParams) UnmarshalJSON(data []byte) error
- func (p StartSamplingParams) WithSamplingInterval(samplingInterval int64) *StartSamplingParams
- func (p StartSamplingParams) WithSuppressRandomness(suppressRandomness bool) *StartSamplingParams
- type StopSamplingParams
- func (p *StopSamplingParams) Do(ctxt context.Context, h cdp.Executor) (err error)
- func (v StopSamplingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StopSamplingParams) MarshalJSON() ([]byte, error)
- func (v *StopSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StopSamplingParams) UnmarshalJSON(data []byte) error
Constants ¶
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 ¶
func (p *GetAllTimeSamplingProfileParams) Do(ctxt context.Context, h cdp.Executor) (profile *SamplingProfile, err error)
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 ¶
func (p *GetBrowserSamplingProfileParams) Do(ctxt context.Context, h cdp.Executor) (profile *SamplingProfile, err error)
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 (*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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Module) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Module) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Module) UnmarshalJSON ¶
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 ¶
func (p *SetPressureNotificationsSuppressedParams) Do(ctxt context.Context, h cdp.Executor) (err error)
Do executes Memory.setPressureNotificationsSuppressed against the provided context.
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 ¶
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) 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) 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