gc-watch

0.1.1 • Public • Published

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

/gc-watch/

    Package Sidebar

    Install

    npm i gc-watch

    Weekly Downloads

    8

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • sankha93