heapprofiler

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddHeapSnapshotChunkEvent

type AddHeapSnapshotChunkEvent struct {
	Chunk string `json:"chunk"`
}

type AddInspectedHeapObjectCommand

type AddInspectedHeapObjectCommand struct {
	DestinationTargetID string

	HeapObjectId HeapSnapshotObjectId `json:"heapObjectId"` // Heap snapshot object id to be accessible by means of $x command line API.
	// contains filtered or unexported fields
}

func (*AddInspectedHeapObjectCommand) Initalize

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

func (*AddInspectedHeapObjectCommand) Respond

func (c *AddInspectedHeapObjectCommand) Respond()

func (*AddInspectedHeapObjectCommand) RespondWithError

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

type AddInspectedHeapObjectCommandFn

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

func (*AddInspectedHeapObjectCommandFn) Load

func (*AddInspectedHeapObjectCommandFn) Store

type AddInspectedHeapObjectReturn

type AddInspectedHeapObjectReturn struct {
}

type CollectGarbageCommand

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

func (*CollectGarbageCommand) Initalize

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

func (*CollectGarbageCommand) Respond

func (c *CollectGarbageCommand) Respond()

func (*CollectGarbageCommand) RespondWithError

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

type CollectGarbageCommandFn

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

func (*CollectGarbageCommandFn) Load

func (*CollectGarbageCommandFn) Store

type CollectGarbageReturn

type CollectGarbageReturn struct {
}

type DisableCommand

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

func (*DisableCommand) Initalize

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

func (*DisableCommand) Respond

func (c *DisableCommand) Respond()

func (*DisableCommand) RespondWithError

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

type DisableCommandFn

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

func (*DisableCommandFn) Load

func (a *DisableCommandFn) Load() func(DisableCommand)

func (*DisableCommandFn) Store

func (a *DisableCommandFn) Store(fn func(DisableCommand))

type DisableReturn

type DisableReturn struct {
}

type EnableCommand

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

func (*EnableCommand) Initalize

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

func (*EnableCommand) Respond

func (c *EnableCommand) Respond()

func (*EnableCommand) RespondWithError

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

type EnableCommandFn

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

func (*EnableCommandFn) Load

func (a *EnableCommandFn) Load() func(EnableCommand)

func (*EnableCommandFn) Store

func (a *EnableCommandFn) Store(fn func(EnableCommand))

type EnableReturn

type EnableReturn struct {
}

type GetHeapObjectIdCommand

type GetHeapObjectIdCommand struct {
	DestinationTargetID string

	ObjectId runtime.RemoteObjectId `json:"objectId"` // Identifier of the object to get heap object id for.
	// contains filtered or unexported fields
}

func (*GetHeapObjectIdCommand) Initalize

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

func (*GetHeapObjectIdCommand) Respond

func (*GetHeapObjectIdCommand) RespondWithError

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

type GetHeapObjectIdCommandFn

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

func (*GetHeapObjectIdCommandFn) Load

func (*GetHeapObjectIdCommandFn) Store

type GetHeapObjectIdReturn

type GetHeapObjectIdReturn struct {
	HeapSnapshotObjectId HeapSnapshotObjectId `json:"heapSnapshotObjectId"` // Id of the heap snapshot object corresponding to the passed remote object id.
}

type GetObjectByHeapObjectIdCommand

type GetObjectByHeapObjectIdCommand struct {
	DestinationTargetID string

	ObjectId    HeapSnapshotObjectId `json:"objectId"`
	ObjectGroup *string              `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release multiple objects.
	// contains filtered or unexported fields
}

func (*GetObjectByHeapObjectIdCommand) Initalize

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

func (*GetObjectByHeapObjectIdCommand) Respond

func (*GetObjectByHeapObjectIdCommand) RespondWithError

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

type GetObjectByHeapObjectIdCommandFn

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

func (*GetObjectByHeapObjectIdCommandFn) Load

func (*GetObjectByHeapObjectIdCommandFn) Store

type GetObjectByHeapObjectIdReturn

type GetObjectByHeapObjectIdReturn struct {
	Result runtime.RemoteObject `json:"result"` // Evaluation result.
}

type HeapProfilerAgent

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

func NewAgent

func NewAgent(conn *shared.Connection) *HeapProfilerAgent

func (*HeapProfilerAgent) FireAddHeapSnapshotChunk

func (agent *HeapProfilerAgent) FireAddHeapSnapshotChunk(event AddHeapSnapshotChunkEvent)

Dispatchable Events

func (*HeapProfilerAgent) FireAddHeapSnapshotChunkOnTarget

func (agent *HeapProfilerAgent) FireAddHeapSnapshotChunkOnTarget(targetId string, event AddHeapSnapshotChunkEvent)

func (*HeapProfilerAgent) FireHeapStatsUpdate

func (agent *HeapProfilerAgent) FireHeapStatsUpdate(event HeapStatsUpdateEvent)

func (*HeapProfilerAgent) FireHeapStatsUpdateOnTarget

func (agent *HeapProfilerAgent) FireHeapStatsUpdateOnTarget(targetId string, event HeapStatsUpdateEvent)

func (*HeapProfilerAgent) FireLastSeenObjectId

func (agent *HeapProfilerAgent) FireLastSeenObjectId(event LastSeenObjectIdEvent)

func (*HeapProfilerAgent) FireLastSeenObjectIdOnTarget

func (agent *HeapProfilerAgent) FireLastSeenObjectIdOnTarget(targetId string, event LastSeenObjectIdEvent)

func (*HeapProfilerAgent) FireReportHeapSnapshotProgress

func (agent *HeapProfilerAgent) FireReportHeapSnapshotProgress(event ReportHeapSnapshotProgressEvent)

func (*HeapProfilerAgent) FireReportHeapSnapshotProgressOnTarget

func (agent *HeapProfilerAgent) FireReportHeapSnapshotProgressOnTarget(targetId string, event ReportHeapSnapshotProgressEvent)

func (*HeapProfilerAgent) FireResetProfiles

func (agent *HeapProfilerAgent) FireResetProfiles()

func (*HeapProfilerAgent) FireResetProfilesOnTarget

func (agent *HeapProfilerAgent) FireResetProfilesOnTarget(targetId string)

func (*HeapProfilerAgent) Name

func (agent *HeapProfilerAgent) Name() string

func (*HeapProfilerAgent) ProcessCommand

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

func (*HeapProfilerAgent) SetAddInspectedHeapObjectHandler

func (agent *HeapProfilerAgent) SetAddInspectedHeapObjectHandler(handler func(AddInspectedHeapObjectCommand))

func (*HeapProfilerAgent) SetCollectGarbageHandler

func (agent *HeapProfilerAgent) SetCollectGarbageHandler(handler func(CollectGarbageCommand))

func (*HeapProfilerAgent) SetDisableHandler

func (agent *HeapProfilerAgent) SetDisableHandler(handler func(DisableCommand))

func (*HeapProfilerAgent) SetEnableHandler

func (agent *HeapProfilerAgent) SetEnableHandler(handler func(EnableCommand))

Commands Sent From Frontend

func (*HeapProfilerAgent) SetGetHeapObjectIdHandler

func (agent *HeapProfilerAgent) SetGetHeapObjectIdHandler(handler func(GetHeapObjectIdCommand))

func (*HeapProfilerAgent) SetGetObjectByHeapObjectIdHandler

func (agent *HeapProfilerAgent) SetGetObjectByHeapObjectIdHandler(handler func(GetObjectByHeapObjectIdCommand))

func (*HeapProfilerAgent) SetStartSamplingHandler

func (agent *HeapProfilerAgent) SetStartSamplingHandler(handler func(StartSamplingCommand))

func (*HeapProfilerAgent) SetStartTrackingHeapObjectsHandler

func (agent *HeapProfilerAgent) SetStartTrackingHeapObjectsHandler(handler func(StartTrackingHeapObjectsCommand))

func (*HeapProfilerAgent) SetStopSamplingHandler

func (agent *HeapProfilerAgent) SetStopSamplingHandler(handler func(StopSamplingCommand))

func (*HeapProfilerAgent) SetStopTrackingHeapObjectsHandler

func (agent *HeapProfilerAgent) SetStopTrackingHeapObjectsHandler(handler func(StopTrackingHeapObjectsCommand))

func (*HeapProfilerAgent) SetTakeHeapSnapshotHandler

func (agent *HeapProfilerAgent) SetTakeHeapSnapshotHandler(handler func(TakeHeapSnapshotCommand))

type HeapSnapshotObjectId

type HeapSnapshotObjectId string

type HeapStatsUpdateEvent

type HeapStatsUpdateEvent struct {
	StatsUpdate []int64 `json:"statsUpdate"` // An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment.
}

type LastSeenObjectIdEvent

type LastSeenObjectIdEvent struct {
	LastSeenObjectId int64   `json:"lastSeenObjectId"`
	Timestamp        float64 `json:"timestamp"`
}

type ReportHeapSnapshotProgressEvent

type ReportHeapSnapshotProgressEvent struct {
	Done     int64 `json:"done"`
	Total    int64 `json:"total"`
	Finished *bool `json:"finished,omitempty"`
}

type ResetProfilesEvent

type ResetProfilesEvent struct {
}

type SamplingHeapProfile

type SamplingHeapProfile struct {
	Head SamplingHeapProfileNode `json:"head"`
}

type SamplingHeapProfileNode

type SamplingHeapProfileNode struct {
	CallFrame runtime.CallFrame         `json:"callFrame"` // Function location.
	SelfSize  float64                   `json:"selfSize"`  // Allocations size in bytes for the node excluding children.
	Children  []SamplingHeapProfileNode `json:"children"`  // Child nodes.
}

type StartSamplingCommand

type StartSamplingCommand struct {
	DestinationTargetID string

	SamplingInterval *float64 `json:"samplingInterval,omitempty"` // Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
	// contains filtered or unexported fields
}

func (*StartSamplingCommand) Initalize

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

func (*StartSamplingCommand) Respond

func (c *StartSamplingCommand) Respond()

func (*StartSamplingCommand) RespondWithError

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

type StartSamplingCommandFn

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

func (*StartSamplingCommandFn) Load

func (*StartSamplingCommandFn) Store

func (a *StartSamplingCommandFn) Store(fn func(StartSamplingCommand))

type StartSamplingReturn

type StartSamplingReturn struct {
}

type StartTrackingHeapObjectsCommand

type StartTrackingHeapObjectsCommand struct {
	DestinationTargetID string

	TrackAllocations *bool `json:"trackAllocations,omitempty"`
	// contains filtered or unexported fields
}

func (*StartTrackingHeapObjectsCommand) Initalize

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

func (*StartTrackingHeapObjectsCommand) Respond

func (c *StartTrackingHeapObjectsCommand) Respond()

func (*StartTrackingHeapObjectsCommand) RespondWithError

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

type StartTrackingHeapObjectsCommandFn

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

func (*StartTrackingHeapObjectsCommandFn) Load

func (*StartTrackingHeapObjectsCommandFn) Store

type StartTrackingHeapObjectsReturn

type StartTrackingHeapObjectsReturn struct {
}

type StopSamplingCommand

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

func (*StopSamplingCommand) Initalize

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

func (*StopSamplingCommand) Respond

func (c *StopSamplingCommand) Respond(r *StopSamplingReturn)

func (*StopSamplingCommand) RespondWithError

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

type StopSamplingCommandFn

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

func (*StopSamplingCommandFn) Load

func (*StopSamplingCommandFn) Store

func (a *StopSamplingCommandFn) Store(fn func(StopSamplingCommand))

type StopSamplingReturn

type StopSamplingReturn struct {
	Profile SamplingHeapProfile `json:"profile"` // Recorded sampling heap profile.
}

type StopTrackingHeapObjectsCommand

type StopTrackingHeapObjectsCommand struct {
	DestinationTargetID string

	ReportProgress *bool `json:"reportProgress,omitempty"` // If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
	// contains filtered or unexported fields
}

func (*StopTrackingHeapObjectsCommand) Initalize

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

func (*StopTrackingHeapObjectsCommand) Respond

func (c *StopTrackingHeapObjectsCommand) Respond()

func (*StopTrackingHeapObjectsCommand) RespondWithError

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

type StopTrackingHeapObjectsCommandFn

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

func (*StopTrackingHeapObjectsCommandFn) Load

func (*StopTrackingHeapObjectsCommandFn) Store

type StopTrackingHeapObjectsReturn

type StopTrackingHeapObjectsReturn struct {
}

type TakeHeapSnapshotCommand

type TakeHeapSnapshotCommand struct {
	DestinationTargetID string

	ReportProgress *bool `json:"reportProgress,omitempty"` // If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
	// contains filtered or unexported fields
}

func (*TakeHeapSnapshotCommand) Initalize

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

func (*TakeHeapSnapshotCommand) Respond

func (c *TakeHeapSnapshotCommand) Respond()

func (*TakeHeapSnapshotCommand) RespondWithError

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

type TakeHeapSnapshotCommandFn

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

func (*TakeHeapSnapshotCommandFn) Load

func (*TakeHeapSnapshotCommandFn) Store

type TakeHeapSnapshotReturn

type TakeHeapSnapshotReturn struct {
}

Jump to

Keyboard shortcuts

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