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
Asked
Active
Viewed 1,026 times
1

user428747
- 307
- 2
- 7
- 22
4 Answers
2
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
- 922,412
- 146
- 1,693
- 2,536
-
++ 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 Sep 13 '10 at 19:23
1
this is great tutorial: http://www.codeproject.com/KB/dotnet/perfcounter.aspx

Andrey
- 59,039
- 12
- 119
- 163
0
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.

Community
- 1
- 1

Mike Dunlavey
- 40,059
- 14
- 91
- 135