util: integrate node-heapdump into core
Adds v8.heapdump.getHeapdump()
and v8.heapdump.triggerHeapdump(filename)
methods with impl adapted from the node-heapdump
module.
Not included is the SIGUSR2
signal, which can be handled by userland.
/cc https://github.com/nodejs/diagnostics/issues/279 @nodejs/diagnostics
Also see: https://github.com/nodejs/node/pull/26498
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines