memory

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package memory implements the Memory domain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(conn *rpcc.Conn) *domainClient

NewClient returns a client for the Memory domain with the connection set to conn.

Types

type GetAllTimeSamplingProfileReply added in v0.16.4

type GetAllTimeSamplingProfileReply struct {
	Profile SamplingProfile `json:"profile"` // No description.
}

GetAllTimeSamplingProfileReply represents the return values for GetAllTimeSamplingProfile in the Memory domain.

type GetBrowserSamplingProfileReply added in v0.17.1

type GetBrowserSamplingProfileReply struct {
	Profile SamplingProfile `json:"profile"` // No description.
}

GetBrowserSamplingProfileReply represents the return values for GetBrowserSamplingProfile in the Memory domain.

type GetDOMCountersReply

type GetDOMCountersReply struct {
	Documents        int `json:"documents"`        // No description.
	Nodes            int `json:"nodes"`            // No description.
	JsEventListeners int `json:"jsEventListeners"` // No description.
}

GetDOMCountersReply represents the return values for GetDOMCounters in the Memory domain.

type GetSamplingProfileReply added in v0.16.1

type GetSamplingProfileReply struct {
	Profile SamplingProfile `json:"profile"` // No description.
}

GetSamplingProfileReply represents the return values for GetSamplingProfile in the Memory domain.

type Module added in v0.18.6

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

type PressureLevel

type PressureLevel string

PressureLevel Memory pressure level.

const (
	PressureLevelNotSet   PressureLevel = ""
	PressureLevelModerate PressureLevel = "moderate"
	PressureLevelCritical PressureLevel = "critical"
)

PressureLevel as enums.

func (PressureLevel) String

func (e PressureLevel) String() string

func (PressureLevel) Valid

func (e PressureLevel) Valid() bool

type SamplingProfile added in v0.16.1

type SamplingProfile struct {
	Samples []SamplingProfileNode `json:"samples"` // No description.
	Modules []Module              `json:"modules"` // No description.
}

SamplingProfile Array of heap profile samples.

type SamplingProfileNode added in v0.16.1

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.

type SetPressureNotificationsSuppressedArgs

type SetPressureNotificationsSuppressedArgs struct {
	Suppressed bool `json:"suppressed"` // If true, memory pressure notifications will be suppressed.
}

SetPressureNotificationsSuppressedArgs represents the arguments for SetPressureNotificationsSuppressed in the Memory domain.

func NewSetPressureNotificationsSuppressedArgs

func NewSetPressureNotificationsSuppressedArgs(suppressed bool) *SetPressureNotificationsSuppressedArgs

NewSetPressureNotificationsSuppressedArgs initializes SetPressureNotificationsSuppressedArgs with the required arguments.

type SimulatePressureNotificationArgs

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

SimulatePressureNotificationArgs represents the arguments for SimulatePressureNotification in the Memory domain.

func NewSimulatePressureNotificationArgs

func NewSimulatePressureNotificationArgs(level PressureLevel) *SimulatePressureNotificationArgs

NewSimulatePressureNotificationArgs initializes SimulatePressureNotificationArgs with the required arguments.

type StartSamplingArgs added in v0.16.1

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

StartSamplingArgs represents the arguments for StartSampling in the Memory domain.

func NewStartSamplingArgs added in v0.16.1

func NewStartSamplingArgs() *StartSamplingArgs

NewStartSamplingArgs initializes StartSamplingArgs with the required arguments.

func (*StartSamplingArgs) SetSamplingInterval added in v0.16.1

func (a *StartSamplingArgs) SetSamplingInterval(samplingInterval int) *StartSamplingArgs

SetSamplingInterval sets the SamplingInterval optional argument. Average number of bytes between samples.

func (*StartSamplingArgs) SetSuppressRandomness added in v0.16.1

func (a *StartSamplingArgs) SetSuppressRandomness(suppressRandomness bool) *StartSamplingArgs

SetSuppressRandomness sets the SuppressRandomness optional argument. Do not randomize intervals between samples.

Jump to

Keyboard shortcuts

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