Jeremy Kloth <jeremy.kloth+python-trac...@gmail.com> added the comment:

Not that it matters all that much, but from a terminology standpoint, WMI != 
PDH != Performance Counters.

Performance counters (the objects, not the topic) are provided by DLLs 
registered in the HKLM\SYSTEM\CurrentControlSet\Services key.  Their data is 
accessed via registry API functions using the HKEY_PERFORMANCE_DATA root key.

PDH (Performance Data Helper) provides an abstraction layer that can access 
those values among other things like a GUI or writing to log files.

WMI (Windows Management Instrumentation) is yet another layer on top of PDH and 
raw Performance Counters.

In this case of the "System" performance counter object, it is provided by a 
performance DLL (perfos.dll in the case of Win10 1803).  If overhead (memory 
and/or CPU) is a concern, then accessing the counter data via the registry is 
the way to go.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34060>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to