Documentation ¶
Overview ¶
Package heapprofiler provides the Chrome DevTools Protocol commands, types, and events for the HeapProfiler domain.
Generated by the cdproto-gen command.
Index ¶
- Constants
- type AddInspectedHeapObjectParams
- func (p *AddInspectedHeapObjectParams) Do(ctx context.Context) (err error)
- func (v AddInspectedHeapObjectParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v AddInspectedHeapObjectParams) MarshalJSON() ([]byte, error)
- func (v *AddInspectedHeapObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *AddInspectedHeapObjectParams) UnmarshalJSON(data []byte) error
- type CollectGarbageParams
- func (p *CollectGarbageParams) Do(ctx context.Context) (err error)
- func (v CollectGarbageParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v CollectGarbageParams) MarshalJSON() ([]byte, error)
- func (v *CollectGarbageParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *CollectGarbageParams) UnmarshalJSON(data []byte) error
- type DisableParams
- type EnableParams
- type EventAddHeapSnapshotChunk
- type EventHeapStatsUpdate
- type EventLastSeenObjectID
- type EventReportHeapSnapshotProgress
- type EventResetProfiles
- type GetHeapObjectIDParams
- func (p *GetHeapObjectIDParams) Do(ctx context.Context) (heapSnapshotObjectID HeapSnapshotObjectID, err error)
- func (v GetHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetHeapObjectIDParams) MarshalJSON() ([]byte, error)
- func (v *GetHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetHeapObjectIDParams) UnmarshalJSON(data []byte) error
- type GetHeapObjectIDReturns
- type GetObjectByHeapObjectIDParams
- func (p *GetObjectByHeapObjectIDParams) Do(ctx context.Context) (result *runtime.RemoteObject, err error)
- func (v GetObjectByHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetObjectByHeapObjectIDParams) MarshalJSON() ([]byte, error)
- func (v *GetObjectByHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetObjectByHeapObjectIDParams) UnmarshalJSON(data []byte) error
- func (p GetObjectByHeapObjectIDParams) WithObjectGroup(objectGroup string) *GetObjectByHeapObjectIDParams
- type GetObjectByHeapObjectIDReturns
- type GetSamplingProfileParams
- func (p *GetSamplingProfileParams) Do(ctx context.Context) (profile *SamplingHeapProfile, err error)
- func (v GetSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetSamplingProfileParams) MarshalJSON() ([]byte, error)
- func (v *GetSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetSamplingProfileParams) UnmarshalJSON(data []byte) error
- type GetSamplingProfileReturns
- type HeapSnapshotObjectID
- type SamplingHeapProfile
- type SamplingHeapProfileNode
- type SamplingHeapProfileSample
- type StartSamplingParams
- func (p *StartSamplingParams) Do(ctx context.Context) (err error)
- func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StartSamplingParams) MarshalJSON() ([]byte, error)
- func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StartSamplingParams) UnmarshalJSON(data []byte) error
- func (p StartSamplingParams) WithSamplingInterval(samplingInterval float64) *StartSamplingParams
- type StartTrackingHeapObjectsParams
- func (p *StartTrackingHeapObjectsParams) Do(ctx context.Context) (err error)
- func (v StartTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StartTrackingHeapObjectsParams) MarshalJSON() ([]byte, error)
- func (v *StartTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StartTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error
- func (p StartTrackingHeapObjectsParams) WithTrackAllocations(trackAllocations bool) *StartTrackingHeapObjectsParams
- type StopSamplingParams
- func (p *StopSamplingParams) Do(ctx context.Context) (profile *SamplingHeapProfile, err error)
- func (v StopSamplingParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StopSamplingParams) MarshalJSON() ([]byte, error)
- func (v *StopSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StopSamplingParams) UnmarshalJSON(data []byte) error
- type StopSamplingReturns
- type StopTrackingHeapObjectsParams
- func (p *StopTrackingHeapObjectsParams) Do(ctx context.Context) (err error)
- func (v StopTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v StopTrackingHeapObjectsParams) MarshalJSON() ([]byte, error)
- func (v *StopTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *StopTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error
- func (p StopTrackingHeapObjectsParams) WithReportProgress(reportProgress bool) *StopTrackingHeapObjectsParams
- func (p StopTrackingHeapObjectsParams) WithTreatGlobalObjectsAsRoots(treatGlobalObjectsAsRoots bool) *StopTrackingHeapObjectsParams
- type TakeHeapSnapshotParams
- func (p *TakeHeapSnapshotParams) Do(ctx context.Context) (err error)
- func (v TakeHeapSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v TakeHeapSnapshotParams) MarshalJSON() ([]byte, error)
- func (v *TakeHeapSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *TakeHeapSnapshotParams) UnmarshalJSON(data []byte) error
- func (p TakeHeapSnapshotParams) WithReportProgress(reportProgress bool) *TakeHeapSnapshotParams
- func (p TakeHeapSnapshotParams) WithTreatGlobalObjectsAsRoots(treatGlobalObjectsAsRoots bool) *TakeHeapSnapshotParams
Constants ¶
const ( CommandAddInspectedHeapObject = "HeapProfiler.addInspectedHeapObject" CommandCollectGarbage = "HeapProfiler.collectGarbage" CommandDisable = "HeapProfiler.disable" CommandEnable = "HeapProfiler.enable" CommandGetHeapObjectID = "HeapProfiler.getHeapObjectId" CommandGetObjectByHeapObjectID = "HeapProfiler.getObjectByHeapObjectId" CommandGetSamplingProfile = "HeapProfiler.getSamplingProfile" CommandStartSampling = "HeapProfiler.startSampling" CommandStartTrackingHeapObjects = "HeapProfiler.startTrackingHeapObjects" CommandStopSampling = "HeapProfiler.stopSampling" CommandStopTrackingHeapObjects = "HeapProfiler.stopTrackingHeapObjects" CommandTakeHeapSnapshot = "HeapProfiler.takeHeapSnapshot" )
Command names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddInspectedHeapObjectParams ¶
type AddInspectedHeapObjectParams struct {
HeapObjectID HeapSnapshotObjectID `json:"heapObjectId"` // Heap snapshot object id to be accessible by means of $x command line API.
}
AddInspectedHeapObjectParams enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
func AddInspectedHeapObject ¶
func AddInspectedHeapObject(heapObjectID HeapSnapshotObjectID) *AddInspectedHeapObjectParams
AddInspectedHeapObject enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-addInspectedHeapObject
parameters:
heapObjectID - Heap snapshot object id to be accessible by means of $x command line API.
func (*AddInspectedHeapObjectParams) Do ¶
func (p *AddInspectedHeapObjectParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.addInspectedHeapObject against the provided context.
func (AddInspectedHeapObjectParams) MarshalEasyJSON ¶
func (v AddInspectedHeapObjectParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (AddInspectedHeapObjectParams) MarshalJSON ¶
func (v AddInspectedHeapObjectParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*AddInspectedHeapObjectParams) UnmarshalEasyJSON ¶
func (v *AddInspectedHeapObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AddInspectedHeapObjectParams) UnmarshalJSON ¶
func (v *AddInspectedHeapObjectParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CollectGarbageParams ¶
type CollectGarbageParams struct{}
CollectGarbageParams [no description].
func CollectGarbage ¶
func CollectGarbage() *CollectGarbageParams
CollectGarbage [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-collectGarbage
func (*CollectGarbageParams) Do ¶
func (p *CollectGarbageParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.collectGarbage against the provided context.
func (CollectGarbageParams) MarshalEasyJSON ¶
func (v CollectGarbageParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (CollectGarbageParams) MarshalJSON ¶
func (v CollectGarbageParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*CollectGarbageParams) UnmarshalEasyJSON ¶
func (v *CollectGarbageParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*CollectGarbageParams) UnmarshalJSON ¶
func (v *CollectGarbageParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams ¶
type DisableParams struct{}
DisableParams [no description].
func Disable ¶
func Disable() *DisableParams
Disable [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-disable
func (*DisableParams) Do ¶
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.disable against the provided context.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams [no description].
func Enable ¶
func Enable() *EnableParams
Enable [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-enable
func (*EnableParams) Do ¶
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.enable against the provided context.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventAddHeapSnapshotChunk ¶
type EventAddHeapSnapshotChunk struct {
Chunk string `json:"chunk"`
}
EventAddHeapSnapshotChunk [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-addHeapSnapshotChunk
func (EventAddHeapSnapshotChunk) MarshalEasyJSON ¶
func (v EventAddHeapSnapshotChunk) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAddHeapSnapshotChunk) MarshalJSON ¶
func (v EventAddHeapSnapshotChunk) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAddHeapSnapshotChunk) UnmarshalEasyJSON ¶
func (v *EventAddHeapSnapshotChunk) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAddHeapSnapshotChunk) UnmarshalJSON ¶
func (v *EventAddHeapSnapshotChunk) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventHeapStatsUpdate ¶
type EventHeapStatsUpdate 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.
}
EventHeapStatsUpdate if heap objects tracking has been started then backend may send update for one or more fragments.
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-heapStatsUpdate
func (EventHeapStatsUpdate) MarshalEasyJSON ¶
func (v EventHeapStatsUpdate) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventHeapStatsUpdate) MarshalJSON ¶
func (v EventHeapStatsUpdate) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventHeapStatsUpdate) UnmarshalEasyJSON ¶
func (v *EventHeapStatsUpdate) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventHeapStatsUpdate) UnmarshalJSON ¶
func (v *EventHeapStatsUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventLastSeenObjectID ¶
type EventLastSeenObjectID struct { LastSeenObjectID int64 `json:"lastSeenObjectId"` Timestamp float64 `json:"timestamp"` }
EventLastSeenObjectID if heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-lastSeenObjectId
func (EventLastSeenObjectID) MarshalEasyJSON ¶
func (v EventLastSeenObjectID) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventLastSeenObjectID) MarshalJSON ¶
func (v EventLastSeenObjectID) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventLastSeenObjectID) UnmarshalEasyJSON ¶
func (v *EventLastSeenObjectID) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventLastSeenObjectID) UnmarshalJSON ¶
func (v *EventLastSeenObjectID) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventReportHeapSnapshotProgress ¶
type EventReportHeapSnapshotProgress struct { Done int64 `json:"done"` Total int64 `json:"total"` Finished bool `json:"finished,omitempty"` }
EventReportHeapSnapshotProgress [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-reportHeapSnapshotProgress
func (EventReportHeapSnapshotProgress) MarshalEasyJSON ¶
func (v EventReportHeapSnapshotProgress) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventReportHeapSnapshotProgress) MarshalJSON ¶
func (v EventReportHeapSnapshotProgress) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventReportHeapSnapshotProgress) UnmarshalEasyJSON ¶
func (v *EventReportHeapSnapshotProgress) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventReportHeapSnapshotProgress) UnmarshalJSON ¶
func (v *EventReportHeapSnapshotProgress) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventResetProfiles ¶
type EventResetProfiles struct{}
EventResetProfiles [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-resetProfiles
func (EventResetProfiles) MarshalEasyJSON ¶
func (v EventResetProfiles) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventResetProfiles) MarshalJSON ¶
func (v EventResetProfiles) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventResetProfiles) UnmarshalEasyJSON ¶
func (v *EventResetProfiles) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventResetProfiles) UnmarshalJSON ¶
func (v *EventResetProfiles) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetHeapObjectIDParams ¶
type GetHeapObjectIDParams struct {
ObjectID runtime.RemoteObjectID `json:"objectId"` // Identifier of the object to get heap object id for.
}
GetHeapObjectIDParams [no description].
func GetHeapObjectID ¶
func GetHeapObjectID(objectID runtime.RemoteObjectID) *GetHeapObjectIDParams
GetHeapObjectID [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-getHeapObjectId
parameters:
objectID - Identifier of the object to get heap object id for.
func (*GetHeapObjectIDParams) Do ¶
func (p *GetHeapObjectIDParams) Do(ctx context.Context) (heapSnapshotObjectID HeapSnapshotObjectID, err error)
Do executes HeapProfiler.getHeapObjectId against the provided context.
returns:
heapSnapshotObjectID - Id of the heap snapshot object corresponding to the passed remote object id.
func (GetHeapObjectIDParams) MarshalEasyJSON ¶
func (v GetHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetHeapObjectIDParams) MarshalJSON ¶
func (v GetHeapObjectIDParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetHeapObjectIDParams) UnmarshalEasyJSON ¶
func (v *GetHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetHeapObjectIDParams) UnmarshalJSON ¶
func (v *GetHeapObjectIDParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetHeapObjectIDReturns ¶
type GetHeapObjectIDReturns struct {
HeapSnapshotObjectID HeapSnapshotObjectID `json:"heapSnapshotObjectId,omitempty"` // Id of the heap snapshot object corresponding to the passed remote object id.
}
GetHeapObjectIDReturns return values.
func (GetHeapObjectIDReturns) MarshalEasyJSON ¶
func (v GetHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetHeapObjectIDReturns) MarshalJSON ¶
func (v GetHeapObjectIDReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetHeapObjectIDReturns) UnmarshalEasyJSON ¶
func (v *GetHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetHeapObjectIDReturns) UnmarshalJSON ¶
func (v *GetHeapObjectIDReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetObjectByHeapObjectIDParams ¶
type GetObjectByHeapObjectIDParams struct { ObjectID HeapSnapshotObjectID `json:"objectId"` ObjectGroup string `json:"objectGroup,omitempty"` // Symbolic group name that can be used to release multiple objects. }
GetObjectByHeapObjectIDParams [no description].
func GetObjectByHeapObjectID ¶
func GetObjectByHeapObjectID(objectID HeapSnapshotObjectID) *GetObjectByHeapObjectIDParams
GetObjectByHeapObjectID [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-getObjectByHeapObjectId
parameters:
objectID
func (*GetObjectByHeapObjectIDParams) Do ¶
func (p *GetObjectByHeapObjectIDParams) Do(ctx context.Context) (result *runtime.RemoteObject, err error)
Do executes HeapProfiler.getObjectByHeapObjectId against the provided context.
returns:
result - Evaluation result.
func (GetObjectByHeapObjectIDParams) MarshalEasyJSON ¶
func (v GetObjectByHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetObjectByHeapObjectIDParams) MarshalJSON ¶
func (v GetObjectByHeapObjectIDParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetObjectByHeapObjectIDParams) UnmarshalEasyJSON ¶
func (v *GetObjectByHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetObjectByHeapObjectIDParams) UnmarshalJSON ¶
func (v *GetObjectByHeapObjectIDParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (GetObjectByHeapObjectIDParams) WithObjectGroup ¶
func (p GetObjectByHeapObjectIDParams) WithObjectGroup(objectGroup string) *GetObjectByHeapObjectIDParams
WithObjectGroup symbolic group name that can be used to release multiple objects.
type GetObjectByHeapObjectIDReturns ¶
type GetObjectByHeapObjectIDReturns struct {
Result *runtime.RemoteObject `json:"result,omitempty"` // Evaluation result.
}
GetObjectByHeapObjectIDReturns return values.
func (GetObjectByHeapObjectIDReturns) MarshalEasyJSON ¶
func (v GetObjectByHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetObjectByHeapObjectIDReturns) MarshalJSON ¶
func (v GetObjectByHeapObjectIDReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetObjectByHeapObjectIDReturns) UnmarshalEasyJSON ¶
func (v *GetObjectByHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetObjectByHeapObjectIDReturns) UnmarshalJSON ¶
func (v *GetObjectByHeapObjectIDReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetSamplingProfileParams ¶
type GetSamplingProfileParams struct{}
GetSamplingProfileParams [no description].
func GetSamplingProfile ¶
func GetSamplingProfile() *GetSamplingProfileParams
GetSamplingProfile [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-getSamplingProfile
func (*GetSamplingProfileParams) Do ¶
func (p *GetSamplingProfileParams) Do(ctx context.Context) (profile *SamplingHeapProfile, err error)
Do executes HeapProfiler.getSamplingProfile against the provided context.
returns:
profile - Return the sampling profile being collected.
func (GetSamplingProfileParams) MarshalEasyJSON ¶
func (v GetSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetSamplingProfileParams) MarshalJSON ¶
func (v GetSamplingProfileParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetSamplingProfileParams) UnmarshalEasyJSON ¶
func (v *GetSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetSamplingProfileParams) UnmarshalJSON ¶
func (v *GetSamplingProfileParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetSamplingProfileReturns ¶
type GetSamplingProfileReturns struct {
Profile *SamplingHeapProfile `json:"profile,omitempty"` // Return the sampling profile being collected.
}
GetSamplingProfileReturns return values.
func (GetSamplingProfileReturns) MarshalEasyJSON ¶
func (v GetSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetSamplingProfileReturns) MarshalJSON ¶
func (v GetSamplingProfileReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetSamplingProfileReturns) UnmarshalEasyJSON ¶
func (v *GetSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetSamplingProfileReturns) UnmarshalJSON ¶
func (v *GetSamplingProfileReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type HeapSnapshotObjectID ¶
type HeapSnapshotObjectID string
HeapSnapshotObjectID heap snapshot object id.
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#type-HeapSnapshotObjectId
func (HeapSnapshotObjectID) String ¶
func (t HeapSnapshotObjectID) String() string
String returns the HeapSnapshotObjectID as string value.
type SamplingHeapProfile ¶
type SamplingHeapProfile struct { Head *SamplingHeapProfileNode `json:"head"` Samples []*SamplingHeapProfileSample `json:"samples"` }
SamplingHeapProfile sampling profile.
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#type-SamplingHeapProfile
func (SamplingHeapProfile) MarshalEasyJSON ¶
func (v SamplingHeapProfile) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SamplingHeapProfile) MarshalJSON ¶
func (v SamplingHeapProfile) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SamplingHeapProfile) UnmarshalEasyJSON ¶
func (v *SamplingHeapProfile) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SamplingHeapProfile) UnmarshalJSON ¶
func (v *SamplingHeapProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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. ID int64 `json:"id"` // Node id. Ids are unique across all profiles collected between startSampling and stopSampling. Children []*SamplingHeapProfileNode `json:"children"` // Child nodes. }
SamplingHeapProfileNode sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#type-SamplingHeapProfileNode
func (SamplingHeapProfileNode) MarshalEasyJSON ¶
func (v SamplingHeapProfileNode) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SamplingHeapProfileNode) MarshalJSON ¶
func (v SamplingHeapProfileNode) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SamplingHeapProfileNode) UnmarshalEasyJSON ¶
func (v *SamplingHeapProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SamplingHeapProfileNode) UnmarshalJSON ¶
func (v *SamplingHeapProfileNode) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type SamplingHeapProfileSample ¶
type SamplingHeapProfileSample struct { Size float64 `json:"size"` // Allocation size in bytes attributed to the sample. NodeID int64 `json:"nodeId"` // Id of the corresponding profile tree node. Ordinal float64 `json:"ordinal"` // Time-ordered sample ordinal number. It is unique across all profiles retrieved between startSampling and stopSampling. }
SamplingHeapProfileSample a single sample from a sampling profile.
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#type-SamplingHeapProfileSample
func (SamplingHeapProfileSample) MarshalEasyJSON ¶
func (v SamplingHeapProfileSample) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (SamplingHeapProfileSample) MarshalJSON ¶
func (v SamplingHeapProfileSample) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*SamplingHeapProfileSample) UnmarshalEasyJSON ¶
func (v *SamplingHeapProfileSample) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*SamplingHeapProfileSample) UnmarshalJSON ¶
func (v *SamplingHeapProfileSample) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StartSamplingParams ¶
type StartSamplingParams struct {
SamplingInterval float64 `json:"samplingInterval,omitempty"` // Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
}
StartSamplingParams [no description].
func StartSampling ¶
func StartSampling() *StartSamplingParams
StartSampling [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-startSampling
parameters:
func (*StartSamplingParams) Do ¶
func (p *StartSamplingParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.startSampling against the provided context.
func (StartSamplingParams) MarshalEasyJSON ¶
func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StartSamplingParams) MarshalJSON ¶
func (v StartSamplingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StartSamplingParams) UnmarshalEasyJSON ¶
func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StartSamplingParams) UnmarshalJSON ¶
func (v *StartSamplingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (StartSamplingParams) WithSamplingInterval ¶
func (p StartSamplingParams) WithSamplingInterval(samplingInterval float64) *StartSamplingParams
WithSamplingInterval average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
type StartTrackingHeapObjectsParams ¶
type StartTrackingHeapObjectsParams struct {
TrackAllocations bool `json:"trackAllocations,omitempty"`
}
StartTrackingHeapObjectsParams [no description].
func StartTrackingHeapObjects ¶
func StartTrackingHeapObjects() *StartTrackingHeapObjectsParams
StartTrackingHeapObjects [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-startTrackingHeapObjects
parameters:
func (*StartTrackingHeapObjectsParams) Do ¶
func (p *StartTrackingHeapObjectsParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.startTrackingHeapObjects against the provided context.
func (StartTrackingHeapObjectsParams) MarshalEasyJSON ¶
func (v StartTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StartTrackingHeapObjectsParams) MarshalJSON ¶
func (v StartTrackingHeapObjectsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StartTrackingHeapObjectsParams) UnmarshalEasyJSON ¶
func (v *StartTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StartTrackingHeapObjectsParams) UnmarshalJSON ¶
func (v *StartTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (StartTrackingHeapObjectsParams) WithTrackAllocations ¶
func (p StartTrackingHeapObjectsParams) WithTrackAllocations(trackAllocations bool) *StartTrackingHeapObjectsParams
WithTrackAllocations [no description].
type StopSamplingParams ¶
type StopSamplingParams struct{}
StopSamplingParams [no description].
func StopSampling ¶
func StopSampling() *StopSamplingParams
StopSampling [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-stopSampling
func (*StopSamplingParams) Do ¶
func (p *StopSamplingParams) Do(ctx context.Context) (profile *SamplingHeapProfile, err error)
Do executes HeapProfiler.stopSampling against the provided context.
returns:
profile - Recorded sampling heap profile.
func (StopSamplingParams) MarshalEasyJSON ¶
func (v StopSamplingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopSamplingParams) MarshalJSON ¶
func (v StopSamplingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopSamplingParams) UnmarshalEasyJSON ¶
func (v *StopSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopSamplingParams) UnmarshalJSON ¶
func (v *StopSamplingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StopSamplingReturns ¶
type StopSamplingReturns struct {
Profile *SamplingHeapProfile `json:"profile,omitempty"` // Recorded sampling heap profile.
}
StopSamplingReturns return values.
func (StopSamplingReturns) MarshalEasyJSON ¶
func (v StopSamplingReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopSamplingReturns) MarshalJSON ¶
func (v StopSamplingReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopSamplingReturns) UnmarshalEasyJSON ¶
func (v *StopSamplingReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopSamplingReturns) UnmarshalJSON ¶
func (v *StopSamplingReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StopTrackingHeapObjectsParams ¶
type StopTrackingHeapObjectsParams struct { ReportProgress bool `json:"reportProgress,omitempty"` // If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. TreatGlobalObjectsAsRoots bool `json:"treatGlobalObjectsAsRoots,omitempty"` }
StopTrackingHeapObjectsParams [no description].
func StopTrackingHeapObjects ¶
func StopTrackingHeapObjects() *StopTrackingHeapObjectsParams
StopTrackingHeapObjects [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-stopTrackingHeapObjects
parameters:
func (*StopTrackingHeapObjectsParams) Do ¶
func (p *StopTrackingHeapObjectsParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.stopTrackingHeapObjects against the provided context.
func (StopTrackingHeapObjectsParams) MarshalEasyJSON ¶
func (v StopTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (StopTrackingHeapObjectsParams) MarshalJSON ¶
func (v StopTrackingHeapObjectsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*StopTrackingHeapObjectsParams) UnmarshalEasyJSON ¶
func (v *StopTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*StopTrackingHeapObjectsParams) UnmarshalJSON ¶
func (v *StopTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (StopTrackingHeapObjectsParams) WithReportProgress ¶
func (p StopTrackingHeapObjectsParams) WithReportProgress(reportProgress bool) *StopTrackingHeapObjectsParams
WithReportProgress if true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
func (StopTrackingHeapObjectsParams) WithTreatGlobalObjectsAsRoots ¶
func (p StopTrackingHeapObjectsParams) WithTreatGlobalObjectsAsRoots(treatGlobalObjectsAsRoots bool) *StopTrackingHeapObjectsParams
WithTreatGlobalObjectsAsRoots [no description].
type TakeHeapSnapshotParams ¶
type TakeHeapSnapshotParams struct { ReportProgress bool `json:"reportProgress,omitempty"` // If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. TreatGlobalObjectsAsRoots bool `json:"treatGlobalObjectsAsRoots,omitempty"` // If true, a raw snapshot without artificial roots will be generated }
TakeHeapSnapshotParams [no description].
func TakeHeapSnapshot ¶
func TakeHeapSnapshot() *TakeHeapSnapshotParams
TakeHeapSnapshot [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-takeHeapSnapshot
parameters:
func (*TakeHeapSnapshotParams) Do ¶
func (p *TakeHeapSnapshotParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.takeHeapSnapshot against the provided context.
func (TakeHeapSnapshotParams) MarshalEasyJSON ¶
func (v TakeHeapSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (TakeHeapSnapshotParams) MarshalJSON ¶
func (v TakeHeapSnapshotParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*TakeHeapSnapshotParams) UnmarshalEasyJSON ¶
func (v *TakeHeapSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*TakeHeapSnapshotParams) UnmarshalJSON ¶
func (v *TakeHeapSnapshotParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (TakeHeapSnapshotParams) WithReportProgress ¶
func (p TakeHeapSnapshotParams) WithReportProgress(reportProgress bool) *TakeHeapSnapshotParams
WithReportProgress if true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
func (TakeHeapSnapshotParams) WithTreatGlobalObjectsAsRoots ¶
func (p TakeHeapSnapshotParams) WithTreatGlobalObjectsAsRoots(treatGlobalObjectsAsRoots bool) *TakeHeapSnapshotParams
WithTreatGlobalObjectsAsRoots if true, a raw snapshot without artificial roots will be generated.