[issue34060] regrtest: log "CPU usage" on Windows
Giampaolo Rodola'
report at bugs.python.org
Wed Jul 18 13:25:08 EDT 2018
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
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. =)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34060>
_______________________________________
More information about the Python-bugs-list
mailing list