pretty-heap-used
Basically process.memoryUsage()
+ .heapUsedPercent
+ .heapUsedMB
.
Get it
npm install --save pretty-heap-used
Usage
Just pass the return object of process.memoryUsage
to the prettifier and gain two extra pretty properties.
const prettyHeap = // -> { rss: 123, heapTotal: 123, heapUsed: 123, external: 123, heapUsedPercent: 0.123, heapUsedMB: 123 }