UNPKG

heapdump-signal

Version:
7 lines (5 loc) 151 B
const { writeHeapSnapshot } = require('node:v8'); process.on('SIGUSR2', function () { writeHeapSnapshot(); }); // Yep, that's all it is these days.