memviz
v0.0.106
Published
Express middleware for rendering memory usage visualization.
Downloads
3
Maintainers
Readme
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.