npm.io
0.1.1 • Published 10 years ago

gc-watch

Licence
MIT
Version
0.1.1
Deps
2
Vulns
0
Weekly
0
Stars
5
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

node-gc-watch Build Status

node-gc-watch helps you attach your own event handlers to track when a GC is being fired in your Node.js application. Currently it provides a beforeGC and afterGC event.

Installation

npm install gc-watch --save

Usage

var gcWatch = require('gc-watch');

gcWatch.on('beforeGC', function() {
  // detect memory usage, push stats etc.
});

gcWatch.on('afterGC', function() {
  // calculate memory freed by GC, etc.
});
License

MIT

Keywords