c++embeddedwindows-ce

need a library to get performance counters data under Win CE, c++ code


Under WindowsCE, C++ project, I'd like to get CPU utilization and memory allocation data real time - for logging and troubleshooting. Is there a library or activeX available that i could include in my code and use [without bringing my process to a halt, preferably], anyone knows?

thanks much for any insight!

O.


Solution

  • If you are running on an arm based system (don't know enough about x86 systems) then you need to calculate cpu load on your own by spawning an idle thread and check how much time it consumes.

    You can use the ToolHelpApi (a nice blog post that demonstrates this) to extract more information about processes.