pretty-heap-used

0.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pretty-heap-used

Weekly Downloads

2

Version

0.0.0

License

MIT

Last publish

Collaborators

  • chiefbiiko