0.1.1 • Published 8 years ago

gc-watch v0.1.1

Weekly downloads
57
License
MIT
Repository
github
Last release
8 years ago

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