I’m benchmarking our application’s database performance with various settings in order to determine which values give us the best performance. The metric I need to track is called Active Time in Windows 7’s Resource Monitor, on the Disk tab, under Storage. The values displayed for this statistic in Resource Monitor are instantaneous. I need to compute rolling 1 minute averages like they do for other statistics that are included in the graphs.
Is there a program out there that I can download that does this? If not, what APIs would I need to call to get that value?
You just need to set up performance counters in windows to record what you want. This can be done from inside your program or have windows track it from inside Performance Monitor (
perfmon.exe) (so your program does not need to be running for it to be recording, just set up a Data Collector Set and you can have it record on whatever schedule you want) then have your program parse the logs at a later date.