Comparing version
{ | ||
"name": "heapdump", | ||
"main": "./build/Release/heapdump", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "Make a dump of the V8 heap for later inspection.", | ||
@@ -19,3 +19,10 @@ "homepage": "https://github.com/bnoordhuis/node-heapdump", | ||
}, | ||
"license": "ISC" | ||
"license": "ISC", | ||
"scripts": { | ||
"test": "tap test/test-*" | ||
}, | ||
"devDependencies": { | ||
"shelljs": "~0.3.0", | ||
"tap": "~0.4.12" | ||
} | ||
} |
@@ -24,8 +24,15 @@ node-heapdump | ||
The module exports a single `writeSnapshot([filename])` function that writes | ||
out a snapshot. `filename` defaults to `heapdump-<sec>.<usec>.heapsnapshot` | ||
when omitted. | ||
The module exports a single `writeSnapshot([filename], [callback])` function | ||
that writes out a snapshot. `filename` defaults to | ||
`heapdump-<sec>.<usec>.heapsnapshot` when omitted. | ||
heapdump.writeSnapshot('/var/local/' + Date.now() + '.heapsnapshot'); | ||
The function also takes an optional callback function which is called upon | ||
completion of the heap dump. | ||
heapdump.writeSnapshot(function() { | ||
console.log('dump complete'); | ||
}); | ||
On UNIX, it forks off a new process that writes out the snapshot in an | ||
@@ -32,0 +39,0 @@ asynchronous fashion. (That is, the function does not block.) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20375
41.89%12
20%133
432%75
10.29%2
Infinity%4
100%