showmemory
Show memory usage in current process.
Installation
$ npm install showmemory
Usage
You can pass an interval time to showmemory, default is 1000;
var showMemory = ;; // show memory every 5 second
output:
Process: heapTotal 5.88 MB heapUsed 2.25 MB rss 12.86 MB---------------------------------------------------------Process: heapTotal 5.88 MB heapUsed 2.26 MB rss 12.87 MB---------------------------------------------------------Process: heapTotal 5.88 MB heapUsed 2.26 MB rss 12.87 MB---------------------------------------------------------Process: heapTotal 5.88 MB heapUsed 2.27 MB rss 12.88 MB---------------------------------------------------------
when you use showMemory, the process will never stop untill you use ctrl + c.