const heapdump = require('heapdump');
setTimeout( ()=>{
heapdump.writeSnapshot(`${process.cwd()}/` + Date.now() + '.heapsnapshot');
}, 12000 );
转载于:https://www.cnblogs.com/wujinhong/p/11362447.html
const heapdump = require('heapdump');
setTimeout( ()=>{
heapdump.writeSnapshot(`${process.cwd()}/` + Date.now() + '.heapsnapshot');
}, 12000 );
转载于:https://www.cnblogs.com/wujinhong/p/11362447.html