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,017 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
- 897,808
- 140
- 1,634
- 2,455
-
++ 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
- 57,904
- 11
- 115
- 158
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
- 39,349
- 13
- 88
- 132