Visual Studio add-in for performance benchmarking

Posted by chiccodoro on Stack Overflow See other posts from Stack Overflow or by chiccodoro
Published on 2010-06-09T08:16:46Z Indexed on 2010/06/09 8:22 UTC
Read the original article Hit count: 246

I'd like to measure the performance of some code blocks in my c# winforms application. In particular I want to measure performance regression/improvement after some restructuring of the code.

So long I've seen the System.Diagnostics.Stopwatch. However, I want to avoid writing measuring code into my classes, I would rather prefer to separate measuring from actual code.

As for debugging, you can set breakpoints on several code lines and "jump" from one to the next by "Continue Execution", I imagine something similar for measuring: Mark to lines of code and make Visual Studio display the time elapsing from one to the next.

Is there any feature/add-in in that direction?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about visual-studio