Documentation
¶
Index ¶
- type AddHeapSnapshotChunkEvent
- type AddInspectedHeapObjectCommand
- type AddInspectedHeapObjectCommandFn
- type AddInspectedHeapObjectReturn
- type CollectGarbageCommand
- type CollectGarbageCommandFn
- type CollectGarbageReturn
- type DisableCommand
- type DisableCommandFn
- type DisableReturn
- type EnableCommand
- type EnableCommandFn
- type EnableReturn
- type GetHeapObjectIdCommand
- type GetHeapObjectIdCommandFn
- type GetHeapObjectIdReturn
- type GetObjectByHeapObjectIdCommand
- type GetObjectByHeapObjectIdCommandFn
- type GetObjectByHeapObjectIdReturn
- type HeapProfilerAgent
- func (agent *HeapProfilerAgent) FireAddHeapSnapshotChunk(event AddHeapSnapshotChunkEvent)
- func (agent *HeapProfilerAgent) FireAddHeapSnapshotChunkOnTarget(targetId string, event AddHeapSnapshotChunkEvent)
- func (agent *HeapProfilerAgent) FireHeapStatsUpdate(event HeapStatsUpdateEvent)
- func (agent *HeapProfilerAgent) FireHeapStatsUpdateOnTarget(targetId string, event HeapStatsUpdateEvent)
- func (agent *HeapProfilerAgent) FireLastSeenObjectId(event LastSeenObjectIdEvent)
- func (agent *HeapProfilerAgent) FireLastSeenObjectIdOnTarget(targetId string, event LastSeenObjectIdEvent)
- func (agent *HeapProfilerAgent) FireReportHeapSnapshotProgress(event ReportHeapSnapshotProgressEvent)
- func (agent *HeapProfilerAgent) FireReportHeapSnapshotProgressOnTarget(targetId string, event ReportHeapSnapshotProgressEvent)
- func (agent *HeapProfilerAgent) FireResetProfiles()
- func (agent *HeapProfilerAgent) FireResetProfilesOnTarget(targetId string)
- func (agent *HeapProfilerAgent) Name() string
- func (agent *HeapProfilerAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *HeapProfilerAgent) SetAddInspectedHeapObjectHandler(handler func(AddInspectedHeapObjectCommand))
- func (agent *HeapProfilerAgent) SetCollectGarbageHandler(handler func(CollectGarbageCommand))
- func (agent *HeapProfilerAgent) SetDisableHandler(handler func(DisableCommand))
- func (agent *HeapProfilerAgent) SetEnableHandler(handler func(EnableCommand))
- func (agent *HeapProfilerAgent) SetGetHeapObjectIdHandler(handler func(GetHeapObjectIdCommand))
- func (agent *HeapProfilerAgent) SetGetObjectByHeapObjectIdHandler(handler func(GetObjectByHeapObjectIdCommand))
- func (agent *HeapProfilerAgent) SetStartSamplingHandler(handler func(StartSamplingCommand))
- func (agent *HeapProfilerAgent) SetStartTrackingHeapObjectsHandler(handler func(StartTrackingHeapObjectsCommand))
- func (agent *HeapProfilerAgent) SetStopSamplingHandler(handler func(StopSamplingCommand))
- func (agent *HeapProfilerAgent) SetStopTrackingHeapObjectsHandler(handler func(StopTrackingHeapObjectsCommand))
- func (agent *HeapProfilerAgent) SetTakeHeapSnapshotHandler(handler func(TakeHeapSnapshotCommand))
- type HeapSnapshotObjectId
- type HeapStatsUpdateEvent
- type LastSeenObjectIdEvent
- type ReportHeapSnapshotProgressEvent
- type ResetProfilesEvent
- type SamplingHeapProfile
- type SamplingHeapProfileNode
- type StartSamplingCommand
- type StartSamplingCommandFn
- type StartSamplingReturn
- type StartTrackingHeapObjectsCommand
- type StartTrackingHeapObjectsCommandFn
- type StartTrackingHeapObjectsReturn
- type StopSamplingCommand
- type StopSamplingCommandFn
- type StopSamplingReturn
- type StopTrackingHeapObjectsCommand
- type StopTrackingHeapObjectsCommandFn
- type StopTrackingHeapObjectsReturn
- type TakeHeapSnapshotCommand
- type TakeHeapSnapshotCommandFn
- type TakeHeapSnapshotReturn
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 (a *AddInspectedHeapObjectCommandFn) Load() func(AddInspectedHeapObjectCommand)
func (*AddInspectedHeapObjectCommandFn) Store ¶
func (a *AddInspectedHeapObjectCommandFn) Store(fn func(AddInspectedHeapObjectCommand))
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 (a *CollectGarbageCommandFn) Load() func(CollectGarbageCommand)
func (*CollectGarbageCommandFn) Store ¶
func (a *CollectGarbageCommandFn) Store(fn func(CollectGarbageCommand))
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 (c *GetHeapObjectIdCommand) Respond(r *GetHeapObjectIdReturn)
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 (a *GetHeapObjectIdCommandFn) Load() func(GetHeapObjectIdCommand)
func (*GetHeapObjectIdCommandFn) Store ¶
func (a *GetHeapObjectIdCommandFn) Store(fn func(GetHeapObjectIdCommand))
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 (c *GetObjectByHeapObjectIdCommand) Respond(r *GetObjectByHeapObjectIdReturn)
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 (a *GetObjectByHeapObjectIdCommandFn) Load() func(GetObjectByHeapObjectIdCommand)
func (*GetObjectByHeapObjectIdCommandFn) Store ¶
func (a *GetObjectByHeapObjectIdCommandFn) Store(fn func(GetObjectByHeapObjectIdCommand))
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 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 (a *StartSamplingCommandFn) Load() func(StartSamplingCommand)
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 (a *StartTrackingHeapObjectsCommandFn) Load() func(StartTrackingHeapObjectsCommand)
func (*StartTrackingHeapObjectsCommandFn) Store ¶
func (a *StartTrackingHeapObjectsCommandFn) Store(fn func(StartTrackingHeapObjectsCommand))
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 (a *StopSamplingCommandFn) Load() func(StopSamplingCommand)
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 (a *StopTrackingHeapObjectsCommandFn) Load() func(StopTrackingHeapObjectsCommand)
func (*StopTrackingHeapObjectsCommandFn) Store ¶
func (a *StopTrackingHeapObjectsCommandFn) Store(fn func(StopTrackingHeapObjectsCommand))
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 (a *TakeHeapSnapshotCommandFn) Load() func(TakeHeapSnapshotCommand)
func (*TakeHeapSnapshotCommandFn) Store ¶
func (a *TakeHeapSnapshotCommandFn) Store(fn func(TakeHeapSnapshotCommand))
type TakeHeapSnapshotReturn ¶
type TakeHeapSnapshotReturn struct { }
Click to show internal directories.
Click to hide internal directories.