node-heapdump:对V8堆进行转储以供以后检查

时间:2021-02-21 10:43:32
【文件属性】:
文件名称:node-heapdump:对V8堆进行转储以供以后检查
文件大小:14KB
文件格式:ZIP
更新时间:2021-02-21 10:43:32
JavaScript 节点堆转储 转储V8堆以供以后检查。 安装 npm install heapdump 或者,如果您正在运行node.js v0.6或v0.8: npm install heapdump@0.1.0 建造 node-gyp configure build 用法 将加载项加载到您的应用程序中: var heapdump = require('heapdump'); 该模块导出一个writeSnapshot([filename], [callback])函数,该函数写出快照。 如果省略,则filename默认为heapdump-..heapsnapshot 。 heapdump.writeSnapshot('/var/local/' + Date.now() + '.heapsnapshot'); 该函数还具有一个可选的回调函数,该函数在堆转储完成时被调用。 hea
【文件预览】:
node-heapdump-master
----.gitignore(77B)
----README.md(2KB)
----binding.gyp(1KB)
----test()
--------test-sigusr2.js(2KB)
--------test-callback-error.js(1KB)
--------test-callback-without-filename.js(2KB)
--------test-callback.js(2KB)
----.clang-format(1KB)
----LICENSE(2KB)
----package.json(630B)
----src()
--------heapdump-win32.h(1KB)
--------heapdump-posix.h(2KB)
--------heapdump.cc(4KB)
----index.js(2KB)

网友评论