memory

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDOMCountersCommand

type GetDOMCountersCommand struct {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*GetDOMCountersCommand) Initalize

func (c *GetDOMCountersCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetDOMCountersCommand) Respond

func (*GetDOMCountersCommand) RespondWithError

func (c *GetDOMCountersCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type GetDOMCountersCommandFn

type GetDOMCountersCommandFn struct {
	// contains filtered or unexported fields
}

func (*GetDOMCountersCommandFn) Load

func (*GetDOMCountersCommandFn) Store

type GetDOMCountersReturn

type GetDOMCountersReturn struct {
	Documents        int64 `json:"documents"`
	Nodes            int64 `json:"nodes"`
	JsEventListeners int64 `json:"jsEventListeners"`
}

type MemoryAgent

type MemoryAgent struct {
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent(conn *shared.Connection) *MemoryAgent

func (*MemoryAgent) Name

func (agent *MemoryAgent) Name() string

func (*MemoryAgent) ProcessCommand

func (agent *MemoryAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

func (*MemoryAgent) SetGetDOMCountersHandler

func (agent *MemoryAgent) SetGetDOMCountersHandler(handler func(GetDOMCountersCommand))

Commands Sent From Frontend

func (*MemoryAgent) SetSetPressureNotificationsSuppressedHandler

func (agent *MemoryAgent) SetSetPressureNotificationsSuppressedHandler(handler func(SetPressureNotificationsSuppressedCommand))

func (*MemoryAgent) SetSimulatePressureNotificationHandler

func (agent *MemoryAgent) SetSimulatePressureNotificationHandler(handler func(SimulatePressureNotificationCommand))

type PressureLevel

type PressureLevel string
const (
	PressureLevelModerate PressureLevel = "moderate"
	PressureLevelCritical PressureLevel = "critical"
)

type SetPressureNotificationsSuppressedCommand

type SetPressureNotificationsSuppressedCommand struct {
	DestinationTargetID string

	Suppressed bool `json:"suppressed"` // If true, memory pressure notifications will be suppressed.
	// contains filtered or unexported fields
}

func (*SetPressureNotificationsSuppressedCommand) Initalize

func (c *SetPressureNotificationsSuppressedCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SetPressureNotificationsSuppressedCommand) Respond

func (*SetPressureNotificationsSuppressedCommand) RespondWithError

type SetPressureNotificationsSuppressedCommandFn

type SetPressureNotificationsSuppressedCommandFn struct {
	// contains filtered or unexported fields
}

func (*SetPressureNotificationsSuppressedCommandFn) Load

func (*SetPressureNotificationsSuppressedCommandFn) Store

type SetPressureNotificationsSuppressedReturn

type SetPressureNotificationsSuppressedReturn struct {
}

type SimulatePressureNotificationCommand

type SimulatePressureNotificationCommand struct {
	DestinationTargetID string

	Level PressureLevel `json:"level"` // Memory pressure level of the notification.
	// contains filtered or unexported fields
}

func (*SimulatePressureNotificationCommand) Initalize

func (c *SimulatePressureNotificationCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*SimulatePressureNotificationCommand) Respond

func (*SimulatePressureNotificationCommand) RespondWithError

func (c *SimulatePressureNotificationCommand) RespondWithError(code shared.ResponseErrorCodes, message string)

type SimulatePressureNotificationCommandFn

type SimulatePressureNotificationCommandFn struct {
	// contains filtered or unexported fields
}

func (*SimulatePressureNotificationCommandFn) Load

func (*SimulatePressureNotificationCommandFn) Store

type SimulatePressureNotificationReturn

type SimulatePressureNotificationReturn struct {
}

Jump to

Keyboard shortcuts

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