memory-producer

v0.1.1
Emits average memory of your node process at a particular ttl as a readable stream

memory-producer

A readable stream based off of producer that emits a godot event object on each ttl.

example

var Memory = require('memory');

//
// Emits a free and used memory event every 5 seconds
// with the process.memoryUsage() data for each data.meta
//
var memory = new Memory({ ttl: 5000 })

memory.on('data', function (data) {
  console.dir(data);
})
npm i memory-producer

Metadata

  • MIT
  • 0.10.x
  • Jarrett Cruger
  • released 1/18/2014

Downloads

Maintainers