Hi Shailesh,
Regarding on the performance counters of windows system, a given
performance counter itself doesn't provide any of the following values:
"average"
"maximum"
"minimum"
performance counter itself only keep the latest value updated from the
source application(such as windows system , SQL server or other
applications that has registered certain counters).
For the above statistic values, they're calculated by the perfmon.exe
program, and the calculation is on-deman(no history record stored in any
persistent log file). That means, whenever you launch the perfmon.exe
program, it start calculating the above statistic values for every
counters(that is listed) and after you close the perfmon and restart it
again, the calculation start again and no previous record are persistent.
Therefore, for your scenario here, if you want to get such statistic value
for certain performance counters in your own application, you need to do it
programmaically through your own code as below:
**In your application, use the performance counter class/methods to get a
set of the sample values (according to the performance c ounter's frequency
and the accuracy you need) and you need to keep these sample values yourself
**Calculate the statistic values(average, max, min values) based on the set
of sample values obtained above
Hope this helps. If you have any further question on this, please feel free
to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.