简体   繁体   English

C#中的Profiler?

[英]Profiler in C#?

Currently to performance test code that I write, I have to create some sort of separate throw away executable and set up the timing manually. 目前我写的性能测试代码,我必须创建一些单独的丢弃可执行文件并手动设置时间。 I really like how the unit testing is built into VS so that I don't have to write a separate executable to get information. 我真的很喜欢单元测试是如何构建到VS中的,所以我不必编写单独的可执行文件来获取信息。 Is there anything similar for performance testing? 性能测试有类似之处吗? If not, does anyone know of a good performance testing framework so that I can stop writing throw away testing executables? 如果没有,有没有人知道一个良好的性能测试框架,以便我可以停止写丢弃测试可执行文件? I'm not finding anything on Google that seems appropriate for C#. 我在Google上找不到适合C#的任何内容。 Thanks. 谢谢。

EDIT: I guess I'm looking for something like this , only maintained 编辑:我想我正在寻找像这样 ,既保持

EQATEC has some good tools for just this that are FREE. EQATEC有一些免费的好工具。 There are metrics of time spent in each method call, memory consumption, etc... Really useful information in detailing exactly where your performance bottlenecks are. 在每个方法调用,内存消耗等方面花费了时间的指标...真正有用的信息详细说明了性能瓶颈的位置。

If you have the money for it, dotTRACE is really good as well. 如果你有钱, dotTRACE也非常好。 dotTRACE is essentially the same thing, just presented in a much more friendly and intuitive fashion. dotTRACE基本上是相同的东西,只是以更加友好和直观的方式呈现。

它内置于Visual Studio: http//msdn.microsoft.com/en-us/library/z9z62c29.aspx

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

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