soyuka / pidusage

Cross-platform process cpu % and memory usage of a PID
MIT License
512 stars 55 forks source link

Use process.cpuUsage() if the pid provided matches process.pid #63

Open simonepri opened 6 years ago

simonepri commented 6 years ago

Instead of using binaries or procfiles we can just use the value given by the node's process.cpuUsage() function if pid == process.pid