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

Function writeHeapSnapshot

lib/v8.js:91–97  ·  view source on GitHub ↗

* Generates a snapshot of the current V8 heap * and writes it to a JSON file. * @param {string} [filename] * @param {{ * exposeInternals?: boolean, * exposeNumericValues?: boolean * }} [options] * @returns {string}

(filename, options)

Source from the content-addressed store, hash-verified

89 * @returns {string}
90 */
91function writeHeapSnapshot(filename, options) {
92 if (filename !== undefined) {
93 filename = getValidatedPath(filename);
94 }
95 const optionArray = getHeapSnapshotOptions(options);
96 return triggerHeapSnapshot(filename, optionArray);
97}
98
99/**
100 * Generates a snapshot of the current V8 heap

Callers 3

doWriteHeapSnapshotFunction · 0.85
test-heapdump.jsFile · 0.85

Calls 1

getHeapSnapshotOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…