C# 最好的 .NET 内存和性能分析器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49912/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Best .NET memory and performance profiler?
提问by leora
We are using JetBrains' dotTrace. What other profiling tools can be recommended that are better for profiling C# Windows Formsapplications?
我们正在使用JetBrains的dotTrace。可以推荐哪些其他分析工具来更好地分析 C# Windows 窗体应用程序?
采纳答案by McKenzieG1
No. I have tried pretty much every .NET profiler on the market (ANTS, vTune, OptimizeIt, DevPartner, YourKit), and in my opinion dotTrace is the best of the lot. It is one of only two profilers I have used (the other being YourKit) that has low enough overhead to handle a highly CPU-intensive application.
不。我已经尝试了市场上几乎所有的 .NET 分析器(ANTS、vTune、OptimizeIt、DevPartner、YourKit),在我看来,dotTrace 是最好的。它是我使用过的仅有的两个分析器之一(另一个是 YourKit),其开销足够低,可以处理 CPU 高度密集的应用程序。
If and only if your application is relatively light, I could recommend ANTS Profiler. Its line-by-line stats are sometimes quite useful, but they come at a price in profiling efficiency.
当且仅当您的应用程序相对较轻时,我可以推荐ANTS Profiler。它的逐行统计数据有时非常有用,但它们以分析效率为代价。
回答by Dale Ragan
We use DotTrace like you, but in the past we used Ants Profilerby RedGate. It is a nice tool also.
我们像您一样使用 DotTrace,但过去我们使用RedGate 的Ants Profiler。它也是一个不错的工具。
回答by Bramha Ghosh
Ants Profiler just released version 4.
We use it, and are quite happy with it. There's a 14 day trial to evaluate (as is true for most offerings).
Ants Profiler 刚刚发布了第 4 版。
我们使用它,并且对它非常满意。有 14 天的试用期可供评估(大多数产品都是如此)。
回答by On Freund
For memory profiling you have both the free CLR profiler and the commercial .NET memory profiler. Both are excellent but the latter is a bit more polished.
对于内存分析,您可以使用免费的 CLR 分析器和商业.NET 内存分析器。两者都很棒,但后者更精致。
回答by Jonathan Allen
I am very happy with RedGate ANTS. The only other one I tried was the one that comes with Visual Studio Team, and it sucks.
我对 RedGate ANTS 非常满意。我唯一尝试过的另一个是 Visual Studio Team 附带的,它很糟糕。
回答by Kibbee
回答by Greg Whitfield
回答by STW
It hasn't been mentioned yet, but for memory analysis Windbg is about as thorough and low-level as you can get. Using it in combination with sos.dll is incredibly powerful, but there is a fairly steep learning curve.
它还没有被提及,但是对于内存分析,Windbg 是您所能获得的最彻底和低级别的。将它与 sos.dll 结合使用非常强大,但学习曲线相当陡峭。
It's a free tool though, and Tess Ferrandez' blog is a great place to start with it. ANTS and other profilers are much more user-friendly, but Windbg can slice and dice the managed heap like none other in my opinion.
不过,它是一个免费工具,Tess Ferrandez 的博客是开始使用它的好地方。ANTS 和其他分析器对用户更加友好,但在我看来,Windbg 可以像其他任何人一样对托管堆进行切片和切块。
回答by Peter Mortensen
I have used the EQATEC Profiler. It is free and is a code profiler, not a memory profiler.
我使用了EQATEC Profiler。它是免费的,是一个代码分析器,而不是一个内存分析器。
回答by Trillian
I've been using the free SlimTunesince its recent release. Although it has a minimal interface, it is super easy to use and provides good diagnostics which have already helped me a lot. It currently supports two kinds of displays, one of which is similar to nProf. It is from the same developer as SlimDX, so I expect the tool to become even better in the short term.
自最近发布以来,我一直在使用免费的SlimTune。虽然它有一个最小的界面,但它非常易于使用并提供了很好的诊断,这已经对我有很大帮助。它目前支持两种显示方式,其中一种类似于 nProf。它与 SlimDX 来自同一个开发人员,因此我希望该工具在短期内变得更好。
EDIT: As far as I know, it does not support memory profiling yet.
编辑:据我所知,它还不支持内存分析。