soyuka / pidusage

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

Why unmonitor is needed? #25

Closed atypicalprogrammer closed 8 years ago

atypicalprogrammer commented 8 years ago

I'd like to know why the unmonitor method is needed?

atypicalprogrammer commented 8 years ago

Do we need to call every time after we call stat? Or only 1 time when we want to stop the monitoring?

soyuka commented 8 years ago

On windows you don't need it, it is on linux systems (see here) to clear the process usage history stack, once when you stop monitoring.