← Back to HeapProfiler domain

HeapProfiler.addInspectedHeapObject

Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

Domain: HeapProfiler experimental

Parameters

NameTypeDescription
heapObjectIdHeapSnapshotObjectIdHeap snapshot object id to be accessible by means of $x command line API.

Example Request

{
  "id": 1,
  "method": "HeapProfiler.addInspectedHeapObject",
  "params": {
    "heapObjectId": "heapObjectId-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('HeapProfiler.addInspectedHeapObject', {"heapObjectId": "heapObjectId-value"});
console.log(result);