Author vstinner
Recipients LorenzMende, ammar2, eryksun, heckad, paul.moore, skoslowski, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-09-30.08:56:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
We could avoid typeperf command by accessing directly performance counters:

(1) The Performance Data Helper (PDH) interface, which provides high-level access to data from both version 1 and version 2 performance counter providers.
(2) The registry interface, which provides low-level access to data from performance counter providers.
(3) The performance library interface, which provides direct access to data from version 2 performance counter providers.

(2) in short: RegQueryValueEx() with HKEY_PERFORMANCE_DATA and the PPERF_DATA_BLOCK structure


PERF_DATA_BLOCK structure fields:


Some examples mention "RegQueryValueEx function. Use HKEY_PERFORMANCE_DATA".

Performance Data Format:


PDH & friends was discussed in bpo-34060 which added the feature to libregrtest.
Date User Action Args
2019-09-30 08:56:15vstinnersetrecipients: + vstinner, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, ammar2, LorenzMende, skoslowski, heckad
2019-09-30 08:56:15vstinnersetmessageid: <>
2019-09-30 08:56:15vstinnerlinkissue36670 messages
2019-09-30 08:56:15vstinnercreate