Comparing version 0.2.9 to 0.2.10
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20375
12
133
75
2
4