← Back to HeapProfiler domain

HeapProfiler.getHeapObjectId

No description available.

Domain: HeapProfiler experimental

Parameters

NameTypeDescription
objectIdRuntime.RemoteObjectIdIdentifier of the object to get heap object id for.

Returns

NameTypeDescription
heapSnapshotObjectIdHeapSnapshotObjectIdId 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"}