Author giampaolo.rodola
Recipients ammar2, giampaolo.rodola, jkloth, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2018-07-18.17:25:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531934708.79.0.56676864532.issue34060@psf.upfronthosting.co.za>
In-reply-to
Content
psutil exposes this functionality as "psutil.cpu_percent()":

https://github.com/giampaolo/psutil/blob/ac9dccab6b038835b5d612f92cf4804ec2662c2e/psutil/_psutil_windows.c#L992

https://github.com/giampaolo/psutil/blob/ac9dccab6b038835b5d612f92cf4804ec2662c2e/psutil/__init__.py#L1675

I'm not sure if it's worth it to copy all that stuff into Modules/_winapi.c and test/libregrtest/main.py though. It would probably be simpler to change the policy and allow (at least some) some third party libs in cPython's test suite. =)
History
Date User Action Args
2018-07-18 17:25:08giampaolo.rodolasetrecipients: + giampaolo.rodola, paul.moore, vstinner, tim.golden, jkloth, zach.ware, steve.dower, ammar2
2018-07-18 17:25:08giampaolo.rodolasetmessageid: <1531934708.79.0.56676864532.issue34060@psf.upfronthosting.co.za>
2018-07-18 17:25:08giampaolo.rodolalinkissue34060 messages
2018-07-18 17:25:08giampaolo.rodolacreate