[issue46788] regrtest fails to start on missing performance counter names
Steve Dower
report at bugs.python.org
Mon Mar 21 19:34:53 EDT 2022
Steve Dower <steve.dower at python.org> added the comment:
"So close" being some months ago ;)
I need to retrigger address sanitiser so that it passes before merging, but after that, I'll merge (and hopefully the backport is clean).
Copying Eryk Sun's comment here for posterity:
This would be less fragile and more useful in general if support were added to _winapi for PdhOpenQueryW(), PdhAddEnglishCounterW(), PdhCollectQueryData(), PdhCollectQueryDataEx(), PdhGetFormattedCounterValue(), and PdhCloseQuery(). The English counter name is "\System\Processor Queue Length" -- no need to worry about localized names, hard-coded values, or hard-coded struct sizes and offsets.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46788>
_______________________________________
More information about the Python-bugs-list
mailing list