← Back to HeapProfiler domain

HeapProfiler.getObjectByHeapObjectId

No description available.

Domain: HeapProfiler experimental

Parameters

NameTypeDescription
objectIdHeapSnapshotObjectId
objectGroup (optional)stringSymbolic group name that can be used to release multiple objects.

Returns

NameTypeDescription
resultRuntime.RemoteObjectEvaluation result.

Example Request

{
  "id": 1,
  "method": "HeapProfiler.getObjectByHeapObjectId",
  "params": {
    "objectId": "{\"injectedScriptId\":1,\"id\":1}"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "result": {
      "type": "string",
      "value": "Example Domain"
    }
  }
}

Usage in Node.js

const result = await send('HeapProfiler.getObjectByHeapObjectId', {"objectId": "{\"injectedScriptId\":1,\"id\":1}"});
console.log(result);
// {"result": {"type": "string", "value": "Example Domain"}}