Author giampaolo.rodola
Recipients ammar2, giampaolo.rodola, jkloth, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2018-07-24.18:39:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> PR 8287 seems short to me and it seems like psutils doesn't expose Processor Queue Length, so I'm not sure why we are talking about depending on psutils?

I'm not sure if you're strictly interested in getting system load or if CPU utilization is also fine. FWIW with psutil you would be able to get the system-wide CPU utilization occurred in a given period of time:

>>> import psutil, time
>>> psutil.cpu_percent(interval=None)  # non-blocking
>>> time.sleep(60)
>>> psutil.cpu_percent(interval=None)  # average of the last 60 secs

...and you can do the same for the current process too (psutil.Process().cpu_percent()).
Date User Action Args
2018-07-24 18:39:11giampaolo.rodolasetrecipients: + giampaolo.rodola, paul.moore, vstinner, tim.golden, jkloth, zach.ware, steve.dower, ammar2
2018-07-24 18:39:10giampaolo.rodolasetmessageid: <>
2018-07-24 18:39:10giampaolo.rodolalinkissue34060 messages
2018-07-24 18:39:10giampaolo.rodolacreate