HeapProfiler Domain
Methods
enable#
disable#
stopTrackingHeapObjects#
Parameters
- reportProgress
- boolean If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
takeHeapSnapshot#
Parameters
- reportProgress
- boolean If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
collectGarbage#
getObjectByHeapObjectId#
Parameters
- objectId
- HeapSnapshotObjectId
- objectGroup
- string Symbolic group name that can be used to release multiple objects.
Return object
- result
- Runtime.RemoteObject Evaluation result.
addInspectedHeapObject#
Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
Parameters
- heapObjectId
- HeapSnapshotObjectId Heap snapshot object id to be accessible by means of $x command line API.
getHeapObjectId#
Parameters
- objectId
- Runtime.RemoteObjectId Identifier of the object to get heap object id for.
Return object
- heapSnapshotObjectId
- HeapSnapshotObjectId Id of the heap snapshot object corresponding to the passed remote object id.
Events
resetProfiles#
lastSeenObjectId#
If heap objects tracking has been started then backend regulary 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.
Parameters
- lastSeenObjectId
- integer
- timestamp
- number
heapStatsUpdate#
If heap objects tracking has been started then backend may send update for one or more fragments
Parameters
- statsUpdate
- array [integer] 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.