← Back to HeapProfiler domain
HeapProfiler.getHeapObjectId
No description available.
Domain: HeapProfiler
experimental
Parameters
| Name | Type | Description |
objectId | Runtime.RemoteObjectId | Identifier of the object to get heap object id for. |
Returns
| Name | Type | Description |
heapSnapshotObjectId | HeapSnapshotObjectId | Id of the heap snapshot object corresponding to the passed remote object id. |
Example Request
{
"id": 1,
"method": "HeapProfiler.getHeapObjectId",
"params": {
"objectId": "{\"injectedScriptId\":1,\"id\":1}"
}
}
Example Response
{
"id": 1,
"result": {
"heapSnapshotObjectId": "heapSnapshotObjectId-value"
}
}
Usage in Node.js
const result = await send('HeapProfiler.getHeapObjectId', {"objectId": "{\"injectedScriptId\":1,\"id\":1}"});
console.log(result);
// {"heapSnapshotObjectId": "heapSnapshotObjectId-value"}