user428747
user428747

Reputation: 307

Implementing Perf Counters

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

Upvotes: 1

Views: 1058

Answers (4)

Mike Dunlavey
Mike Dunlavey

Reputation: 40709

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.

Upvotes: 0

Jeremy
Jeremy

Reputation: 1973

Check out the StopWatch class. Samples here.

Upvotes: 0

Hans Passant
Hans Passant

Reputation: 942368

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

Upvotes: 1

Andrey
Andrey

Reputation: 60105

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

Upvotes: 1

Related Questions