0.0.0 • Published 6 years ago

pretty-heap-used v0.0.0

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

pretty-heap-used

build status AppVeyor Build Status


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 = require('pretty-heap-used')

prettyHeap(process.memoryUsage())
// -> { rss: 123, heapTotal: 123, heapUsed: 123, external: 123, heapUsedPercent: 0.123, heapUsedMB: 123 }

License

MIT