.NET Framework Bookmark and Share   
 index > Building Development and Diagnostic Tools for .Net > Using the AverageTimer32 performance counter
 

Using the AverageTimer32 performance counter

Hi!
I have implemented the AverageTimer32 (and AverageBase) counter(s) in order to monitor the average time for an operation. I'm pretty sure I have implemented it the way it's ment (i've read lots of examples) etc...

But what I don't like is the fact that perfmon shows the value of the counter as 0 (zero) except for a very short period of time, just when the counter is modified. This is not what I had expected. If I complete two operations, one takes 3 seconds and the other takes 5 seconds, I would expect the counter to stay on 4 (seconds) until the next time it's updated or resetted.

So, I would like to know if there is a simple way to achieve this behaviour? Otherwise I guess I'll have to do the average calculation on my own and use a regular (NumberOfItems32) counter or something like that...

Any advises would be mostly appreciated!

Regards
Andreas

All Replies

  • Thursday, January 15, 2009 12:26 PMmaxim.tgs-systems Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Andreas.
    It looks like i have the same problem, did you find how to fix it?
    Regards
    Maxim

    maxim
Andreas Brosten

Andreas,

Are you still having this problem? If so, can you post the code you're using to calculate the values?

Thanks,
Jon

Jon Langdon

You can use google to search for other answers

Custom Search

More Threads

• CF Debugging with Mdbg: How to make .pdb available?
• TCP sniffer
• Help to get started on a process blocker tool for work
• IL Disassembler
• Problems with accessing the values from WCF Counters
• where's the docs in .net 2.0?(debufRef, Profiler,etc)
• Is there any way i can create custom rules in fxcop 1.35 for region declaratives and summary (///summary) tag
• ICorDebug and "Debugger Users"
• Dead Code Analyzer Tool
• mscorlib in Framework 3.5 as compared with 2.0