cdproto: github.com/chromedp/cdproto/memory Index | Files

package memory

import "github.com/chromedp/cdproto/memory"

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

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go memory.go types.go

Constants

const (
    CommandGetDOMCounters                     = "Memory.getDOMCounters"
    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.

type ForciblyPurgeJavaScriptMemoryParams Uses

type ForciblyPurgeJavaScriptMemoryParams struct{}

ForciblyPurgeJavaScriptMemoryParams simulate OomIntervention by purging V8 memory.

func ForciblyPurgeJavaScriptMemory Uses

func ForciblyPurgeJavaScriptMemory() *ForciblyPurgeJavaScriptMemoryParams

ForciblyPurgeJavaScriptMemory simulate OomIntervention by purging V8 memory.

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

func (*ForciblyPurgeJavaScriptMemoryParams) Do Uses

func (p *ForciblyPurgeJavaScriptMemoryParams) Do(ctx context.Context) (err error)

Do executes Memory.forciblyPurgeJavaScriptMemory against the provided context.

func (ForciblyPurgeJavaScriptMemoryParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ForciblyPurgeJavaScriptMemoryParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ForciblyPurgeJavaScriptMemoryParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ForciblyPurgeJavaScriptMemoryParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetAllTimeSamplingProfileParams Uses

type GetAllTimeSamplingProfileParams struct{}

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

func GetAllTimeSamplingProfile Uses

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 Uses

func (p *GetAllTimeSamplingProfileParams) Do(ctx context.Context) (profile *SamplingProfile, err error)

Do executes Memory.getAllTimeSamplingProfile against the provided context.

returns:

profile

func (GetAllTimeSamplingProfileParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAllTimeSamplingProfileParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetAllTimeSamplingProfileParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAllTimeSamplingProfileParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetAllTimeSamplingProfileReturns Uses

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

GetAllTimeSamplingProfileReturns return values.

func (GetAllTimeSamplingProfileReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetAllTimeSamplingProfileReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetAllTimeSamplingProfileReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetAllTimeSamplingProfileReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetBrowserSamplingProfileParams Uses

type GetBrowserSamplingProfileParams struct{}

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

func GetBrowserSamplingProfile Uses

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 Uses

func (p *GetBrowserSamplingProfileParams) Do(ctx context.Context) (profile *SamplingProfile, err error)

Do executes Memory.getBrowserSamplingProfile against the provided context.

returns:

profile

func (GetBrowserSamplingProfileParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBrowserSamplingProfileParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetBrowserSamplingProfileParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBrowserSamplingProfileParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetBrowserSamplingProfileReturns Uses

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

GetBrowserSamplingProfileReturns return values.

func (GetBrowserSamplingProfileReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetBrowserSamplingProfileReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetBrowserSamplingProfileReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetBrowserSamplingProfileReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetDOMCountersParams Uses

type GetDOMCountersParams struct{}

GetDOMCountersParams [no description].

func GetDOMCounters Uses

func GetDOMCounters() *GetDOMCountersParams

GetDOMCounters [no description].

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

func (*GetDOMCountersParams) Do Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDOMCountersParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetDOMCountersParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDOMCountersParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetDOMCountersReturns Uses

type GetDOMCountersReturns struct {
    Documents        int64 `json:"documents,omitempty"`
    Nodes            int64 `json:"nodes,omitempty"`
    JsEventListeners int64 `json:"jsEventListeners,omitempty"`
}

GetDOMCountersReturns return values.

func (GetDOMCountersReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetDOMCountersReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetDOMCountersReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetDOMCountersReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetSamplingProfileParams Uses

type GetSamplingProfileParams struct{}

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

func GetSamplingProfile Uses

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 Uses

func (p *GetSamplingProfileParams) Do(ctx context.Context) (profile *SamplingProfile, err error)

Do executes Memory.getSamplingProfile against the provided context.

returns:

profile

func (GetSamplingProfileParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSamplingProfileParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetSamplingProfileParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSamplingProfileParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetSamplingProfileReturns Uses

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

GetSamplingProfileReturns return values.

func (GetSamplingProfileReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSamplingProfileReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetSamplingProfileReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSamplingProfileReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type Module Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Module) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*Module) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Module) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type PrepareForLeakDetectionParams Uses

type PrepareForLeakDetectionParams struct{}

PrepareForLeakDetectionParams [no description].

func PrepareForLeakDetection Uses

func PrepareForLeakDetection() *PrepareForLeakDetectionParams

PrepareForLeakDetection [no description].

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

func (*PrepareForLeakDetectionParams) Do Uses

func (p *PrepareForLeakDetectionParams) Do(ctx context.Context) (err error)

Do executes Memory.prepareForLeakDetection against the provided context.

func (PrepareForLeakDetectionParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (PrepareForLeakDetectionParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*PrepareForLeakDetectionParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PrepareForLeakDetectionParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type PressureLevel Uses

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 Uses

func (t PressureLevel) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PressureLevel) MarshalJSON Uses

func (t PressureLevel) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PressureLevel) String Uses

func (t PressureLevel) String() string

String returns the PressureLevel as string value.

func (*PressureLevel) UnmarshalEasyJSON Uses

func (t *PressureLevel) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PressureLevel) UnmarshalJSON Uses

func (t *PressureLevel) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type SamplingProfile Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SamplingProfile) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SamplingProfile) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SamplingProfile) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SamplingProfileNode Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SamplingProfileNode) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SamplingProfileNode) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SamplingProfileNode) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetPressureNotificationsSuppressedParams Uses

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 Uses

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 Uses

func (p *SetPressureNotificationsSuppressedParams) Do(ctx context.Context) (err error)

Do executes Memory.setPressureNotificationsSuppressed against the provided context.

func (SetPressureNotificationsSuppressedParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPressureNotificationsSuppressedParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetPressureNotificationsSuppressedParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPressureNotificationsSuppressedParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SimulatePressureNotificationParams Uses

type SimulatePressureNotificationParams struct {
    Level PressureLevel `json:"level"` // Memory pressure level of the notification.
}

SimulatePressureNotificationParams simulate a memory pressure notification in all processes.

func SimulatePressureNotification Uses

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 Uses

func (p *SimulatePressureNotificationParams) Do(ctx context.Context) (err error)

Do executes Memory.simulatePressureNotification against the provided context.

func (SimulatePressureNotificationParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SimulatePressureNotificationParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SimulatePressureNotificationParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SimulatePressureNotificationParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type StartSamplingParams Uses

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 Uses

func StartSampling() *StartSamplingParams

StartSampling start collecting native memory profile.

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

parameters:

func (*StartSamplingParams) Do Uses

func (p *StartSamplingParams) Do(ctx context.Context) (err error)

Do executes Memory.startSampling against the provided context.

func (StartSamplingParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartSamplingParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*StartSamplingParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartSamplingParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (StartSamplingParams) WithSamplingInterval Uses

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

WithSamplingInterval average number of bytes between samples.

func (StartSamplingParams) WithSuppressRandomness Uses

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

WithSuppressRandomness do not randomize intervals between samples.

type StopSamplingParams Uses

type StopSamplingParams struct{}

StopSamplingParams stop collecting native memory profile.

func StopSampling Uses

func StopSampling() *StopSamplingParams

StopSampling stop collecting native memory profile.

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

func (*StopSamplingParams) Do Uses

func (p *StopSamplingParams) Do(ctx context.Context) (err error)

Do executes Memory.stopSampling against the provided context.

func (StopSamplingParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopSamplingParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*StopSamplingParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopSamplingParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

Package memory imports 7 packages (graph) and is imported by 3 packages. Updated 2021-01-08. Refresh now. Tools for package owners.