tags:

views:

54

answers:

4

I have an application in C#, i want to implement perfcounters in this application so that i can track down the performance parameters and use them to make my application have better performance as of now the application has performance issues.
Thanks

A: 

this is great tutorial: http://www.codeproject.com/KB/dotnet/perfcounter.aspx

Andrey
+1  A: 

Performance counters only tell you that your program is slow. They don't tell you why your program is slow. Use a profiler.

Hans Passant
++ You're right, although the words "slow" and "profiler" give me an itch. I've never seen code that was slow. I have seen code that was extremely unnecessary. And lots of things call themselves profilers, but only some are actually very effective.
Mike Dunlavey
A: 

Check out the StopWatch class. Samples here.

Jeremy
A: 

To paraphrase @Hans, there's a world of difference between measuring performance problems and finding them, in spite of what is popularly said. Here's discussion of all that, and directions telling how to do it.

Mike Dunlavey