简体   繁体   English

用于性能基准测试的Visual Studio加载项

[英]Visual Studio add-in for performance benchmarking

I'd like to measure the performance of some code blocks in my c# winforms application. 我想在c#winforms应用程序中测量一些代码块的性能。 In particular I want to measure performance regression/improvement after some restructuring of the code. 特别是我想在一些代码重组后测量性能回归/改进。

So long I've seen the System.Diagnostics.Stopwatch . 很久以前我见过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. 至于调试,你可以在几个代码行上设置断点,并通过“继续执行”从一个代码行“跳转”到另一个代码行,我想象一下测量的类似内容:标记代码行并使Visual Studio显示从一个到下一个。

Is there any free feature/add-in in that direction? 那个方向有免费的功能/插件吗?

Try NProf it's not an addin but it's free. 尝试NProf它不是一个插件,但它是免费的。 Also SharpDevelop has an in built profiler . SharpDevelop还有一个内置的分析器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM