I'm a old C++ guy, so forgive my ignorance in ASM.. I'm having issues with getting CPU utilization through perfmon, because of a small memory leak in the pdh.dll after being called every 60 seconds for weeks on end. I then tried using MS typeperf.exe, but I found that EXE will return nothing at times and get into a state where it just will not return anything until the machine is restarted. So, I've decided to drop to a lower level and see if this can be done in ASM without these kinds of issues.
Anyone have a snippet they can part with to pull CPU Utilization per CPU within ASM?