Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

heapdump

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heapdump - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

test/test-callback-without-filename.js

11

package.json
{
"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"
}
}

13

README.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc