HeapProfiler.addInspectedHeapObjectEnables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
| Name | Type | Description |
|---|---|---|
heapObjectId | HeapSnapshotObjectId | Heap snapshot object id to be accessible by means of $x command line API. |
{
"id": 1,
"method": "HeapProfiler.addInspectedHeapObject",
"params": {
"heapObjectId": "heapObjectId-value"
}
}
{
"id": 1,
"result": {}
}
const result = await send('HeapProfiler.addInspectedHeapObject', {"heapObjectId": "heapObjectId-value"});
console.log(result);