Promon
Collects information from /proc/pid/stat for linux/unix systems
npm install promon
API
- getStats(callback) // returns all information associated to pid
- getCPUPercentage() // returns CPU percentage used by the application
- getMemory() // returns rss memory of the application in MB
Example
var Stats = var s = s var cpuPercent = s var memory = s
License
MIT