Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
jetbrains dotTrace 在这种情况下经常被提及。它不是那么昂贵但功能强大。
jetbrains dotTrace is mentioned often in this case. It's not as expensive but powerful.
我使用两个免费的:
Smart Bear 软件中的 AQTime(免费的缺少 Visual Studio 中的出色集成,无法显示边距/装订线中例程中每一行所花费的时间百分比)。
在这里下载免费版本:
http://smartbear.com/products/free-tools/aqtime-standard/
有时我也会使用 SharpDevelop 附带的免费分析器:
http://www.icsharpcode.net/opensource/sd/download/
我更喜欢AQTime Pro 虽然它有一个更陡峭的学习曲线,但一旦你掌握了窍门,它确实提供了很多洞察力(我用它来分析代码,不是为了速度优化,而是简单地跟踪代码路径(当我单击时谁调用此方法) 编辑:我使用另一个来
尝试过 JetBrains 一次,但我发现它缺少太多功能,
还没有尝试过 RedGate
快速了解正在发生的事情:SoftwareTrails。 (http://www.lovettsoftware.com/LovettSoftware/ post/2012/09/07/Software-Trails.aspx)这是为实时分析而设置和构建的最简单的方法,而不是事后查看结果。
There are two free ones I use:
AQTime from Smart Bear software (the free one lacks the cool integration in Visual Studio that shows the percentage of time spent for each line within a routine in the margin/gutter).
Download the free version here:
http://smartbear.com/products/free-tools/aqtime-standard/
Ocasionally I also use the free profiler that comes with SharpDevelop:
http://www.icsharpcode.net/opensource/sd/download/
I prefer the AQTime Pro though, it has a steeper learning curve but once you get the hang it really provides allot of insight (I use it for analyzing code, not for speed optimization but simply tracing the paths of code (who calls this method when I click on ...).
Tried the JetBrains once, but I found it was lacking too many features to spend anything on it.
Never tried the RedGate one yet.
Edit: There's another one I use for a quick glance of what's going on: SoftwareTrails (http://www.lovettsoftware.com/LovettSoftware/post/2012/09/07/Software-Trails.aspx). It's the simpelest to set up and built for real time analysis instead of viewing the results afterwards.
我一直在使用 EQATEC Profiler。他们有一个免费版本,还有一种方法可以通过尝试他们的另一种产品来获得完整的许可证,而无需付费。
I have been using EQATEC Profiler. They have a free version and there is also a way to get a full license without paying by trying out another one of their products.
Redgate 出售他们的 ANTS Performance Profiler
也看看在第一个答案中的产品列表 这个问题。
Redgate sell their ANTS Performance Profiler
Also have a look at the list of products in the first answer to this question.
我们的 C# Profiler 可以做到这一点。
Our C# Profiler can do this.
您是否曾经使用过InsightProfiler?
它是免费的,虽然网站是英文的,但软件本身有英文用户界面。
它的用户界面很容易习惯,而且有一种轻量级的感觉。我经常使用它。
Have you ever had a look at InsightProfiler?
Its free and although the website is english the software itself has a english user interface.
Its user interface maskes it quite easy to get used to it and it has kind of a lightweight feel to it. I use it quite regularyly.
Ants Profiler 非常好: http://www.red- gateway.com/products/dotnet-development/ants-performance-profiler/
我也喜欢 dotTrace: http ://www.jetbrains.com/profiler/
Ants 更强大,但 dotTrace 的公司支持非常棒:)
另外,通过 dotTrace,如果您正在做开源项目,那么您就有资格获得开源许可证。他们也有频繁的更新,并且仍然支持 .netCF(对于 VS 2008。对你来说并不重要,但表明他们关心并支持所有 Windows 平台)
编辑:
这是我正在从事的项目的 2 个屏幕截图,在 dotTrace 中进行了介绍。正如您可以从第一张图片中看到的那样,您可以获得按线程组织的调用树。它显示了每个方法和子方法的包含时间和包含运行百分比。
在这张图片中,您可以看到专有的运行时间、调用次数,以及在下部面板中的功能调用所选方法(在顶部面板中)以及调用和递归调用的次数。
我不隶属于 jetbrains,但我有几个开源项目,并且他们为我提供了免费许可证,因为他们。因此我真的很喜欢这家公司。
希望这有帮助!
(哦,我有专业版。我不确定其他版本有或没有什么)
Ants Profiler is very good: http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/
Also I like dotTrace: http://www.jetbrains.com/profiler/
Ants is more robust but dotTrace's company support is awesome :)
Also, with dotTrace, if you are doing opensource projects, then you can qualify for an OpenSource license. They also have frequent updates and they still support .netCF (For VS 2008. Not important to you, but shows they care and support all the Windows Platforms)
EDIT:
Here are 2 screenshots of a project I'm working on, profiled in dotTrace. As you can from the first image, you get the call tree, organized by threads. It shows the inclusive time and the inclusive run percentage of each method and sub methods.
In this picture you see the exclusive run time, number of calls and in the lower panel, the functions that called the selected method (in the top panel) and the number of calls and recursive calls.
I am not affiliated with jetbrains, but I have several opensource projects and they have given me free licenses because of them. For that reason I really like the company.
Hope this helps!
(Oh, and I have the Professional version. I'm not sure what the other version have or don't have)