0.0.106 • Published 6 years ago

memviz v0.0.106

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

MemViz - Express middleware for visualizing memory usage

install : npm install memviz -S

Usage

const express = require('express');
const {memviz} = require('memviz');

const app = express();

app.use('/memory', memviz({
  frequency: 100000,  // sample interval (in milliseconds)
  maxCount: 200000  // maximum number of entries to store 
}));

If you make a GET /memory request to your server, you will see this in the browser:

You can probably use an iframe to display this on a webpage as well.