MCPcopy Index your code
hub / github.com/nodejs/node / getHeapSnapshot

Function getHeapSnapshot

lib/v8.js:108–113  ·  view source on GitHub ↗

* Generates a snapshot of the current V8 heap * and returns a Readable Stream. * @param {{ * exposeInternals?: boolean, * exposeNumericValues?: boolean * }} [options] * @returns {import('./stream.js').Readable}

(options)

Source from the content-addressed store, hash-verified

106 * @returns {import('./stream.js').Readable}
107 */
108function getHeapSnapshot(options) {
109 const optionArray = getHeapSnapshotOptions(options);
110 const handle = createHeapSnapshotStream(optionArray);
111 assert(handle);
112 return new HeapSnapshotStream(handle);
113}
114
115// We need to get the buffer from the binding at the callsite since
116// it's re-initialized after deserialization.

Calls 2

getHeapSnapshotOptionsFunction · 0.85
assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…