← Back to HeapProfiler domain

HeapProfiler.takeHeapSnapshot

No description available.

Domain: HeapProfiler experimental

Parameters

NameTypeDescription
reportProgress (optional)booleanIf true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
treatGlobalObjectsAsRoots (optional)booleanIf true, a raw snapshot without artificial roots will be generated. Deprecated in favor of `exposeInternals`.
captureNumericValue (optional)booleanIf true, numerical values are included in the snapshot
exposeInternals (optional)booleanIf true, exposes internals of the snapshot.

Example Request

{
  "id": 1,
  "method": "HeapProfiler.takeHeapSnapshot"
}

Example Response

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

Usage in Node.js

const result = await send('HeapProfiler.takeHeapSnapshot');
console.log(result);