Mountain wrote:
> I want to implement a counter that has a period of 1 hour. What is the
> right way (or best way) to do this? I figure out one way, but I had to
> implement all the code and not use any of the methods in the
> Diagnostics namespace (other than just setting the raw value of my
> counter).
Hi, Mountain. Our team has dealt with this problem also, and in the end we
decided to primarily use "total" counters, which simply count all
occurrences of the event since the application began (or even ever). Once
you have this, you can easily construct a tool that takes regular samples
and takes differences to construct a plot at any rate you desire.
Unfortunately Performance Monitor does not have this useful capability
built-in, but once you create such a tool you can use it in diverse
circumstances. I hope this helps.
--
Derrick Coetzee, MCP, MSFT (Speech Server)
This posting is provided "AS IS" with no warranties, and confers no
rights.
|