soyuka / pidusage

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

Node process doesn't exit if I use pidusage #108

Closed StoneT2000 closed 4 years ago

StoneT2000 commented 4 years ago

I tried running node test.js which contains the following code:

var pidusage = require('pidusage')
pidusage(process.pid).then((s) => {
  console.log(s);
});

However, it never exits and just hangs there for a long time. Is something wrong?

rookiefront commented 4 years ago

https://github.com/soyuka/pidusage/issues/91 ??? You need a good habit