heapprofiler

package
v0.0.0-...-154e967 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package heapprofiler provides the Chrome Debugging Protocol commands, types, and events for the HeapProfiler domain.

Generated by the chromedp-gen command.

Index

Constants

This section is empty.

Variables

EventTypes all event types in the domain.

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).

parameters:

heapObjectID - Heap snapshot object id to be accessible by means of $x command line API.

func (*AddInspectedHeapObjectParams) Do

Do executes HeapProfiler.addInspectedHeapObject against the provided context and target handler.

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].

func (*CollectGarbageParams) Do

func (p *CollectGarbageParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes HeapProfiler.collectGarbage against the provided context and target handler.

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].

func (*DisableParams) Do

func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes HeapProfiler.disable against the provided context and target handler.

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].

func (*EnableParams) Do

func (p *EnableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes HeapProfiler.enable against the provided context and target handler.

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].

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.

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.

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].

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].

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].

parameters:

objectID - Identifier of the object to get heap object id for.

func (*GetHeapObjectIDParams) Do

func (p *GetHeapObjectIDParams) Do(ctxt context.Context, h cdp.Handler) (heapSnapshotObjectID HeapSnapshotObjectID, err error)

Do executes HeapProfiler.getHeapObjectId against the provided context and target handler.

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].

parameters:

objectID

func (*GetObjectByHeapObjectIDParams) Do

Do executes HeapProfiler.getObjectByHeapObjectId against the provided context and target handler.

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].

func (*GetSamplingProfileParams) Do

Do executes HeapProfiler.getSamplingProfile against the provided context and target handler.

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.

func (HeapSnapshotObjectID) String

func (t HeapSnapshotObjectID) String() string

String returns the HeapSnapshotObjectID as string value.

type SamplingHeapProfile

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

SamplingHeapProfile Profile.

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.
	Children  []*SamplingHeapProfileNode `json:"children"`  // Child nodes.
}

SamplingHeapProfileNode sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.

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 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].

parameters:

func (*StartSamplingParams) Do

func (p *StartSamplingParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes HeapProfiler.startSampling against the provided context and target handler.

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].

parameters:

func (*StartTrackingHeapObjectsParams) Do

Do executes HeapProfiler.startTrackingHeapObjects against the provided context and target handler.

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].

func (*StopSamplingParams) Do

func (p *StopSamplingParams) Do(ctxt context.Context, h cdp.Handler) (profile *SamplingHeapProfile, err error)

Do executes HeapProfiler.stopSampling against the provided context and target handler.

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.
}

StopTrackingHeapObjectsParams [no description].

func StopTrackingHeapObjects

func StopTrackingHeapObjects() *StopTrackingHeapObjectsParams

StopTrackingHeapObjects [no description].

parameters:

func (*StopTrackingHeapObjectsParams) Do

Do executes HeapProfiler.stopTrackingHeapObjects against the provided context and target handler.

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.

type TakeHeapSnapshotParams

type TakeHeapSnapshotParams struct {
	ReportProgress bool `json:"reportProgress,omitempty"` // If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
}

TakeHeapSnapshotParams [no description].

func TakeHeapSnapshot

func TakeHeapSnapshot() *TakeHeapSnapshotParams

TakeHeapSnapshot [no description].

parameters:

func (*TakeHeapSnapshotParams) Do

func (p *TakeHeapSnapshotParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes HeapProfiler.takeHeapSnapshot against the provided context and target handler.

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.

Jump to

Keyboard shortcuts

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