Visual Studio 2005中的代码分析 [英] Code Profiling in Visual Studio 2005

查看:96
本文介绍了Visual Studio 2005中的代码分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Studio 2005解决方案工作区,该工作区又包含8个项目.我想剖析完整的代码(所有项目),并获取有关每个函数要执行的绝对周期或至少一定百分比周期消耗的度量.

I have a Visual Studio 2005 Solution workspace which in turn has 8 projects included in it. I want to profile the complete code(all the projects) and get some measure about the absolute cycles taken by each function to execute, or at least percentage cycle consumptions.

我签出了VS 2005的帮助以及项目设置选项,但找不到关于hwo的任何指针来获取配置文件信息. 任何对此的帮助将是有益的.

I checked out help for VS 2005, and also the project setiings options but could not find any pointers on hwo to get the profile info. Any help regarding this would be beneficial.

-AD.

推荐答案

如果您的应用程序不特别占用处理器资源,请 redgate ANTS Profiler 是个不错的选择-逐行统计信息非常方便,整个产品都干净且设计良好.

If your application is not particularly processor intensive, redgate ANTS Profiler is a good choice - the line-by-line stats can come in quite handy, and the whole product is clean and well-designed.

但是,如果您的应用需要大量CPU才能正常运行,则市场上的大多数.NET分析器将无法对其进行处理.我发现只有两个对真正重量级的应用程序有效: JetBrains dotTrace YourKit .两者非常相似,这并不奇怪,因为YourKit似乎是由JetBrains的前雇员创立的.我个人更喜欢dotTrace,但这可能只是因为那是我首先使用的,而且从来没有任何充分的理由进行切换.

If your app needs a lot of CPU to operate normally, however, most of the .NET profilers on the market won't be able to handle it. The only two that I have ever found that will work for a really heavy-weight application are JetBrains dotTrace and YourKit. The two are very similar, which is not surprising, given that YourKit seems to have been started by a former JetBrains employee. I personally prefer dotTrace, but that may just be because that is what I used first, and there has never been any good reason to switch.

我已经测试了ANTS,AQTime,DevPartner,GlowCode,Borland OptimizeIt和Intel VTune,它们所有的开销都太大,无法处理苛刻的应用程序. (VTune是一个可能的例外,但是它的配置和使用非常复杂,以至于我始终无法确切地知道它可以处理什么.这也是非常昂贵的.)

I have tested ANTS, AQTime, DevPartner, GlowCode, Borland OptimizeIt and Intel VTune, and all of them have too much overhead to handle a demanding application. (VTune is a possible exception, but it is so horribly complex to configure and use that I was never able to figure out exactly what it could handle. It is also very expensive.)

这篇关于Visual Studio 2005中的代码分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆