import "github.com/chromedp/cdproto/heapprofiler"
Package heapprofiler provides the Chrome DevTools Protocol commands, types, and events for the HeapProfiler domain.
Generated by the cdproto-gen command.
easyjson.go events.go heapprofiler.go types.go
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.
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(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 (p *AddInspectedHeapObjectParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.addInspectedHeapObject against the provided context.
func (v AddInspectedHeapObjectParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v AddInspectedHeapObjectParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *AddInspectedHeapObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *AddInspectedHeapObjectParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type CollectGarbageParams struct{}
CollectGarbageParams [no description].
func CollectGarbage() *CollectGarbageParams
CollectGarbage [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-collectGarbage
func (p *CollectGarbageParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.collectGarbage against the provided context.
func (v CollectGarbageParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v CollectGarbageParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *CollectGarbageParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *CollectGarbageParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams struct{}
DisableParams [no description].
func Disable() *DisableParams
Disable [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-disable
func (p *DisableParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.disable against the provided context.
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams struct{}
EnableParams [no description].
func Enable() *EnableParams
Enable [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-enable
func (p *EnableParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.enable against the provided context.
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
EventAddHeapSnapshotChunk [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-addHeapSnapshotChunk
func (v EventAddHeapSnapshotChunk) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventAddHeapSnapshotChunk) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventAddHeapSnapshotChunk) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventAddHeapSnapshotChunk) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (v EventHeapStatsUpdate) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventHeapStatsUpdate) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventHeapStatsUpdate) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventHeapStatsUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (v EventLastSeenObjectID) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventLastSeenObjectID) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventLastSeenObjectID) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventLastSeenObjectID) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (v EventReportHeapSnapshotProgress) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventReportHeapSnapshotProgress) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventReportHeapSnapshotProgress) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventReportHeapSnapshotProgress) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EventResetProfiles struct{}
EventResetProfiles [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-resetProfiles
func (v EventResetProfiles) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v EventResetProfiles) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *EventResetProfiles) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *EventResetProfiles) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetHeapObjectIDParams struct { ObjectID runtime.RemoteObjectID `json:"objectId"` // Identifier of the object to get heap object id for. }
GetHeapObjectIDParams [no description].
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 (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 (v GetHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetHeapObjectIDParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetHeapObjectIDParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (v GetHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetHeapObjectIDReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetHeapObjectIDReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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(objectID HeapSnapshotObjectID) *GetObjectByHeapObjectIDParams
GetObjectByHeapObjectID [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-getObjectByHeapObjectId
parameters:
objectID
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 (v GetObjectByHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetObjectByHeapObjectIDParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetObjectByHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetObjectByHeapObjectIDParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p GetObjectByHeapObjectIDParams) WithObjectGroup(objectGroup string) *GetObjectByHeapObjectIDParams
WithObjectGroup symbolic group name that can be used to release multiple objects.
type GetObjectByHeapObjectIDReturns struct { Result *runtime.RemoteObject `json:"result,omitempty"` // Evaluation result. }
GetObjectByHeapObjectIDReturns return values.
func (v GetObjectByHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetObjectByHeapObjectIDReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetObjectByHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetObjectByHeapObjectIDReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetSamplingProfileParams struct{}
GetSamplingProfileParams [no description].
func GetSamplingProfile() *GetSamplingProfileParams
GetSamplingProfile [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-getSamplingProfile
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 (v GetSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetSamplingProfileParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetSamplingProfileParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetSamplingProfileReturns struct { Profile *SamplingHeapProfile `json:"profile,omitempty"` // Return the sampling profile being collected. }
GetSamplingProfileReturns return values.
func (v GetSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v GetSamplingProfileReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *GetSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *GetSamplingProfileReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
HeapSnapshotObjectID heap snapshot object id.
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#type-HeapSnapshotObjectId
func (t HeapSnapshotObjectID) String() string
String returns the HeapSnapshotObjectID as string value.
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 (v SamplingHeapProfile) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SamplingHeapProfile) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SamplingHeapProfile) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SamplingHeapProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (v SamplingHeapProfileNode) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SamplingHeapProfileNode) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SamplingHeapProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SamplingHeapProfileNode) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (v SamplingHeapProfileSample) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v SamplingHeapProfileSample) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *SamplingHeapProfileSample) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *SamplingHeapProfileSample) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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() *StartSamplingParams
StartSampling [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-startSampling
parameters:
func (p *StartSamplingParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.startSampling against the provided context.
func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v StartSamplingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StartSamplingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 struct { TrackAllocations bool `json:"trackAllocations,omitempty"` }
StartTrackingHeapObjectsParams [no description].
func StartTrackingHeapObjects() *StartTrackingHeapObjectsParams
StartTrackingHeapObjects [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-startTrackingHeapObjects
parameters:
func (p *StartTrackingHeapObjectsParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.startTrackingHeapObjects against the provided context.
func (v StartTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v StartTrackingHeapObjectsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *StartTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StartTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p StartTrackingHeapObjectsParams) WithTrackAllocations(trackAllocations bool) *StartTrackingHeapObjectsParams
WithTrackAllocations [no description].
type StopSamplingParams struct{}
StopSamplingParams [no description].
func StopSampling() *StopSamplingParams
StopSampling [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-stopSampling
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 (v StopSamplingParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v StopSamplingParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *StopSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StopSamplingParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type StopSamplingReturns struct { Profile *SamplingHeapProfile `json:"profile,omitempty"` // Recorded sampling heap profile. }
StopSamplingReturns return values.
func (v StopSamplingReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v StopSamplingReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *StopSamplingReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StopSamplingReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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() *StopTrackingHeapObjectsParams
StopTrackingHeapObjects [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-stopTrackingHeapObjects
parameters:
func (p *StopTrackingHeapObjectsParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.stopTrackingHeapObjects against the provided context.
func (v StopTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v StopTrackingHeapObjectsParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *StopTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *StopTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
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 (p StopTrackingHeapObjectsParams) WithTreatGlobalObjectsAsRoots(treatGlobalObjectsAsRoots bool) *StopTrackingHeapObjectsParams
WithTreatGlobalObjectsAsRoots [no description].
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() *TakeHeapSnapshotParams
TakeHeapSnapshot [no description].
See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-takeHeapSnapshot
parameters:
func (p *TakeHeapSnapshotParams) Do(ctx context.Context) (err error)
Do executes HeapProfiler.takeHeapSnapshot against the provided context.
func (v TakeHeapSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (v TakeHeapSnapshotParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (v *TakeHeapSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (v *TakeHeapSnapshotParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
func (p TakeHeapSnapshotParams) WithReportProgress(reportProgress bool) *TakeHeapSnapshotParams
WithReportProgress if true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
func (p TakeHeapSnapshotParams) WithTreatGlobalObjectsAsRoots(treatGlobalObjectsAsRoots bool) *TakeHeapSnapshotParams
WithTreatGlobalObjectsAsRoots if true, a raw snapshot without artificial roots will be generated.
Package heapprofiler imports 7 packages (graph) and is imported by 3 packages. Updated 2021-01-07. Refresh now. Tools for package owners.