node:v8

The built-in Node.js module that exposes V8 internals, such as heap statistics, heap snapshots and serialisation.

In more detail

v8.getHeapStatistics() reports totals including heap_size_limit, and v8.getHeapSpaceStatistics() breaks usage down by heap space. v8.writeHeapSnapshot() saves a snapshot file.

Related terms

Taught in

References