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

Function doWriteHeapSnapshot

lib/internal/process/pre_execution.js:522–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520 const { writeHeapSnapshot } = require('v8');
521
522 function doWriteHeapSnapshot() {
523 const heapSnapshotFilename = getHeapSnapshotFilename(diagnosticDir);
524 writeHeapSnapshot(heapSnapshotFilename);
525 }
526 process.on(signal, doWriteHeapSnapshot);
527
528 // The code above would add the listener back during deserialization,

Callers

nothing calls this directly

Calls 2

getHeapSnapshotFilenameFunction · 0.85
writeHeapSnapshotFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…