Programatically, I am currently using the PCDE functions to retrieve my localhost "% Processor Time" perfmon stat. At the end of every function, I use PdceGetMeasureValue to retrieve the current value and write it to a log file. This works fine. During test execution, I can watch the Task Manager and later verify that the values in the log file match up (roughly). Do these values coorespond to the "CPU Utilization - Agent Health Control Measurement" numbers?

However, I cannot figure out which perfmon stat(s) to retrieve to measure system memory. "Pages/sec" is not what I want and "% Commited Bytes in use" returns no values.

What/how is the "Memory - Agent health control measurement" value determined? Can I get this same value programatically?

Hope this makes sense.