cdproto: github.com/chromedp/cdproto/heapprofiler Index | Files

package heapprofiler

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.

Index

Package Files

easyjson.go events.go heapprofiler.go types.go

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.

type AddInspectedHeapObjectParams Uses

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 Uses

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 Uses

func (p *AddInspectedHeapObjectParams) Do(ctx context.Context) (err error)

Do executes HeapProfiler.addInspectedHeapObject against the provided context.

func (AddInspectedHeapObjectParams) MarshalEasyJSON Uses

func (v AddInspectedHeapObjectParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AddInspectedHeapObjectParams) MarshalJSON Uses

func (v AddInspectedHeapObjectParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AddInspectedHeapObjectParams) UnmarshalEasyJSON Uses

func (v *AddInspectedHeapObjectParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AddInspectedHeapObjectParams) UnmarshalJSON Uses

func (v *AddInspectedHeapObjectParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CollectGarbageParams Uses

type CollectGarbageParams struct{}

CollectGarbageParams [no description].

func CollectGarbage Uses

func CollectGarbage() *CollectGarbageParams

CollectGarbage [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-collectGarbage

func (*CollectGarbageParams) Do Uses

func (p *CollectGarbageParams) Do(ctx context.Context) (err error)

Do executes HeapProfiler.collectGarbage against the provided context.

func (CollectGarbageParams) MarshalEasyJSON Uses

func (v CollectGarbageParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CollectGarbageParams) MarshalJSON Uses

func (v CollectGarbageParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CollectGarbageParams) UnmarshalEasyJSON Uses

func (v *CollectGarbageParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CollectGarbageParams) UnmarshalJSON Uses

func (v *CollectGarbageParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DisableParams Uses

type DisableParams struct{}

DisableParams [no description].

func Disable Uses

func Disable() *DisableParams

Disable [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes HeapProfiler.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct{}

EnableParams [no description].

func Enable Uses

func Enable() *EnableParams

Enable [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-enable

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (err error)

Do executes HeapProfiler.enable against the provided context.

func (EnableParams) MarshalEasyJSON Uses

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventAddHeapSnapshotChunk Uses

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

EventAddHeapSnapshotChunk [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-addHeapSnapshotChunk

func (EventAddHeapSnapshotChunk) MarshalEasyJSON Uses

func (v EventAddHeapSnapshotChunk) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventAddHeapSnapshotChunk) MarshalJSON Uses

func (v EventAddHeapSnapshotChunk) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventAddHeapSnapshotChunk) UnmarshalEasyJSON Uses

func (v *EventAddHeapSnapshotChunk) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventAddHeapSnapshotChunk) UnmarshalJSON Uses

func (v *EventAddHeapSnapshotChunk) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventHeapStatsUpdate Uses

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 Uses

func (v EventHeapStatsUpdate) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventHeapStatsUpdate) MarshalJSON Uses

func (v EventHeapStatsUpdate) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventHeapStatsUpdate) UnmarshalEasyJSON Uses

func (v *EventHeapStatsUpdate) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventHeapStatsUpdate) UnmarshalJSON Uses

func (v *EventHeapStatsUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventLastSeenObjectID Uses

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 Uses

func (v EventLastSeenObjectID) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventLastSeenObjectID) MarshalJSON Uses

func (v EventLastSeenObjectID) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventLastSeenObjectID) UnmarshalEasyJSON Uses

func (v *EventLastSeenObjectID) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventLastSeenObjectID) UnmarshalJSON Uses

func (v *EventLastSeenObjectID) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventReportHeapSnapshotProgress Uses

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 Uses

func (v EventReportHeapSnapshotProgress) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventReportHeapSnapshotProgress) MarshalJSON Uses

func (v EventReportHeapSnapshotProgress) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventReportHeapSnapshotProgress) UnmarshalEasyJSON Uses

func (v *EventReportHeapSnapshotProgress) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventReportHeapSnapshotProgress) UnmarshalJSON Uses

func (v *EventReportHeapSnapshotProgress) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventResetProfiles Uses

type EventResetProfiles struct{}

EventResetProfiles [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#event-resetProfiles

func (EventResetProfiles) MarshalEasyJSON Uses

func (v EventResetProfiles) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventResetProfiles) MarshalJSON Uses

func (v EventResetProfiles) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventResetProfiles) UnmarshalEasyJSON Uses

func (v *EventResetProfiles) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventResetProfiles) UnmarshalJSON Uses

func (v *EventResetProfiles) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetHeapObjectIDParams Uses

type GetHeapObjectIDParams struct {
    ObjectID runtime.RemoteObjectID `json:"objectId"` // Identifier of the object to get heap object id for.
}

GetHeapObjectIDParams [no description].

func GetHeapObjectID Uses

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 Uses

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 Uses

func (v GetHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHeapObjectIDParams) MarshalJSON Uses

func (v GetHeapObjectIDParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHeapObjectIDParams) UnmarshalEasyJSON Uses

func (v *GetHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHeapObjectIDParams) UnmarshalJSON Uses

func (v *GetHeapObjectIDParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetHeapObjectIDReturns Uses

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 Uses

func (v GetHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetHeapObjectIDReturns) MarshalJSON Uses

func (v GetHeapObjectIDReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetHeapObjectIDReturns) UnmarshalEasyJSON Uses

func (v *GetHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetHeapObjectIDReturns) UnmarshalJSON Uses

func (v *GetHeapObjectIDReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetObjectByHeapObjectIDParams Uses

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 Uses

func GetObjectByHeapObjectID(objectID HeapSnapshotObjectID) *GetObjectByHeapObjectIDParams

GetObjectByHeapObjectID [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-getObjectByHeapObjectId

parameters:

objectID

func (*GetObjectByHeapObjectIDParams) Do Uses

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 Uses

func (v GetObjectByHeapObjectIDParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetObjectByHeapObjectIDParams) MarshalJSON Uses

func (v GetObjectByHeapObjectIDParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetObjectByHeapObjectIDParams) UnmarshalEasyJSON Uses

func (v *GetObjectByHeapObjectIDParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetObjectByHeapObjectIDParams) UnmarshalJSON Uses

func (v *GetObjectByHeapObjectIDParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetObjectByHeapObjectIDParams) WithObjectGroup Uses

func (p GetObjectByHeapObjectIDParams) WithObjectGroup(objectGroup string) *GetObjectByHeapObjectIDParams

WithObjectGroup symbolic group name that can be used to release multiple objects.

type GetObjectByHeapObjectIDReturns Uses

type GetObjectByHeapObjectIDReturns struct {
    Result *runtime.RemoteObject `json:"result,omitempty"` // Evaluation result.
}

GetObjectByHeapObjectIDReturns return values.

func (GetObjectByHeapObjectIDReturns) MarshalEasyJSON Uses

func (v GetObjectByHeapObjectIDReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetObjectByHeapObjectIDReturns) MarshalJSON Uses

func (v GetObjectByHeapObjectIDReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetObjectByHeapObjectIDReturns) UnmarshalEasyJSON Uses

func (v *GetObjectByHeapObjectIDReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetObjectByHeapObjectIDReturns) UnmarshalJSON Uses

func (v *GetObjectByHeapObjectIDReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetSamplingProfileParams Uses

type GetSamplingProfileParams struct{}

GetSamplingProfileParams [no description].

func GetSamplingProfile Uses

func GetSamplingProfile() *GetSamplingProfileParams

GetSamplingProfile [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-getSamplingProfile

func (*GetSamplingProfileParams) Do Uses

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 Uses

func (v GetSamplingProfileParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSamplingProfileParams) MarshalJSON Uses

func (v GetSamplingProfileParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetSamplingProfileParams) UnmarshalEasyJSON Uses

func (v *GetSamplingProfileParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSamplingProfileParams) UnmarshalJSON Uses

func (v *GetSamplingProfileParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetSamplingProfileReturns Uses

type GetSamplingProfileReturns struct {
    Profile *SamplingHeapProfile `json:"profile,omitempty"` // Return the sampling profile being collected.
}

GetSamplingProfileReturns return values.

func (GetSamplingProfileReturns) MarshalEasyJSON Uses

func (v GetSamplingProfileReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetSamplingProfileReturns) MarshalJSON Uses

func (v GetSamplingProfileReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetSamplingProfileReturns) UnmarshalEasyJSON Uses

func (v *GetSamplingProfileReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetSamplingProfileReturns) UnmarshalJSON Uses

func (v *GetSamplingProfileReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type HeapSnapshotObjectID Uses

type HeapSnapshotObjectID string

HeapSnapshotObjectID heap snapshot object id.

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#type-HeapSnapshotObjectId

func (HeapSnapshotObjectID) String Uses

func (t HeapSnapshotObjectID) String() string

String returns the HeapSnapshotObjectID as string value.

type SamplingHeapProfile Uses

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 Uses

func (v SamplingHeapProfile) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SamplingHeapProfile) MarshalJSON Uses

func (v SamplingHeapProfile) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SamplingHeapProfile) UnmarshalEasyJSON Uses

func (v *SamplingHeapProfile) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SamplingHeapProfile) UnmarshalJSON Uses

func (v *SamplingHeapProfile) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SamplingHeapProfileNode Uses

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 Uses

func (v SamplingHeapProfileNode) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SamplingHeapProfileNode) MarshalJSON Uses

func (v SamplingHeapProfileNode) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SamplingHeapProfileNode) UnmarshalEasyJSON Uses

func (v *SamplingHeapProfileNode) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SamplingHeapProfileNode) UnmarshalJSON Uses

func (v *SamplingHeapProfileNode) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SamplingHeapProfileSample Uses

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 Uses

func (v SamplingHeapProfileSample) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SamplingHeapProfileSample) MarshalJSON Uses

func (v SamplingHeapProfileSample) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SamplingHeapProfileSample) UnmarshalEasyJSON Uses

func (v *SamplingHeapProfileSample) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SamplingHeapProfileSample) UnmarshalJSON Uses

func (v *SamplingHeapProfileSample) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StartSamplingParams Uses

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 Uses

func StartSampling() *StartSamplingParams

StartSampling [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-startSampling

parameters:

func (*StartSamplingParams) Do Uses

func (p *StartSamplingParams) Do(ctx context.Context) (err error)

Do executes HeapProfiler.startSampling against the provided context.

func (StartSamplingParams) MarshalEasyJSON Uses

func (v StartSamplingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartSamplingParams) MarshalJSON Uses

func (v StartSamplingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartSamplingParams) UnmarshalEasyJSON Uses

func (v *StartSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartSamplingParams) UnmarshalJSON Uses

func (v *StartSamplingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (StartSamplingParams) WithSamplingInterval Uses

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 Uses

type StartTrackingHeapObjectsParams struct {
    TrackAllocations bool `json:"trackAllocations,omitempty"`
}

StartTrackingHeapObjectsParams [no description].

func StartTrackingHeapObjects Uses

func StartTrackingHeapObjects() *StartTrackingHeapObjectsParams

StartTrackingHeapObjects [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-startTrackingHeapObjects

parameters:

func (*StartTrackingHeapObjectsParams) Do Uses

func (p *StartTrackingHeapObjectsParams) Do(ctx context.Context) (err error)

Do executes HeapProfiler.startTrackingHeapObjects against the provided context.

func (StartTrackingHeapObjectsParams) MarshalEasyJSON Uses

func (v StartTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartTrackingHeapObjectsParams) MarshalJSON Uses

func (v StartTrackingHeapObjectsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartTrackingHeapObjectsParams) UnmarshalEasyJSON Uses

func (v *StartTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartTrackingHeapObjectsParams) UnmarshalJSON Uses

func (v *StartTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (StartTrackingHeapObjectsParams) WithTrackAllocations Uses

func (p StartTrackingHeapObjectsParams) WithTrackAllocations(trackAllocations bool) *StartTrackingHeapObjectsParams

WithTrackAllocations [no description].

type StopSamplingParams Uses

type StopSamplingParams struct{}

StopSamplingParams [no description].

func StopSampling Uses

func StopSampling() *StopSamplingParams

StopSampling [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-stopSampling

func (*StopSamplingParams) Do Uses

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 Uses

func (v StopSamplingParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopSamplingParams) MarshalJSON Uses

func (v StopSamplingParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopSamplingParams) UnmarshalEasyJSON Uses

func (v *StopSamplingParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopSamplingParams) UnmarshalJSON Uses

func (v *StopSamplingParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopSamplingReturns Uses

type StopSamplingReturns struct {
    Profile *SamplingHeapProfile `json:"profile,omitempty"` // Recorded sampling heap profile.
}

StopSamplingReturns return values.

func (StopSamplingReturns) MarshalEasyJSON Uses

func (v StopSamplingReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopSamplingReturns) MarshalJSON Uses

func (v StopSamplingReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopSamplingReturns) UnmarshalEasyJSON Uses

func (v *StopSamplingReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopSamplingReturns) UnmarshalJSON Uses

func (v *StopSamplingReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StopTrackingHeapObjectsParams Uses

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 Uses

func StopTrackingHeapObjects() *StopTrackingHeapObjectsParams

StopTrackingHeapObjects [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-stopTrackingHeapObjects

parameters:

func (*StopTrackingHeapObjectsParams) Do Uses

func (p *StopTrackingHeapObjectsParams) Do(ctx context.Context) (err error)

Do executes HeapProfiler.stopTrackingHeapObjects against the provided context.

func (StopTrackingHeapObjectsParams) MarshalEasyJSON Uses

func (v StopTrackingHeapObjectsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StopTrackingHeapObjectsParams) MarshalJSON Uses

func (v StopTrackingHeapObjectsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StopTrackingHeapObjectsParams) UnmarshalEasyJSON Uses

func (v *StopTrackingHeapObjectsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StopTrackingHeapObjectsParams) UnmarshalJSON Uses

func (v *StopTrackingHeapObjectsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (StopTrackingHeapObjectsParams) WithReportProgress Uses

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 Uses

func (p StopTrackingHeapObjectsParams) WithTreatGlobalObjectsAsRoots(treatGlobalObjectsAsRoots bool) *StopTrackingHeapObjectsParams

WithTreatGlobalObjectsAsRoots [no description].

type TakeHeapSnapshotParams Uses

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 Uses

func TakeHeapSnapshot() *TakeHeapSnapshotParams

TakeHeapSnapshot [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/HeapProfiler#method-takeHeapSnapshot

parameters:

func (*TakeHeapSnapshotParams) Do Uses

func (p *TakeHeapSnapshotParams) Do(ctx context.Context) (err error)

Do executes HeapProfiler.takeHeapSnapshot against the provided context.

func (TakeHeapSnapshotParams) MarshalEasyJSON Uses

func (v TakeHeapSnapshotParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TakeHeapSnapshotParams) MarshalJSON Uses

func (v TakeHeapSnapshotParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TakeHeapSnapshotParams) UnmarshalEasyJSON Uses

func (v *TakeHeapSnapshotParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TakeHeapSnapshotParams) UnmarshalJSON Uses

func (v *TakeHeapSnapshotParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (TakeHeapSnapshotParams) WithReportProgress Uses

func (p TakeHeapSnapshotParams) WithReportProgress(reportProgress bool) *TakeHeapSnapshotParams

WithReportProgress if true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.

func (TakeHeapSnapshotParams) WithTreatGlobalObjectsAsRoots Uses

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.