process-usage
v3.4.3
Published
Display dynamic real-time information about running Node.js process and memory leaks
Downloads
2
Maintainers
Readme
process-usage
Display dynamic real-time information about running Node.js process.
Install
as package
$ npm install process-usage --save
as CLI
$ npm install process-usage --global
or
$ npx process-usage
Usage
const procUsage = require('process-usage')()
// print collector stats
console.log(procUsage())
// destroy collector
console.log(procUsage.destroy())