分析 C#/.NET 应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/94581/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-03 11:38:45  来源:igfitidea点击:

Profiling C# / .NET applications

提问by VolkerK

How do you trace/profile your .NET applications? The MSDN online help mentions Visual Studio Team (which I do not possess) and there is the Windows Performance Toolkit. But, are there other solutions you can recommend? Preferably (of course) a solution that works without changing the code (manually) and that can be integrated in Visual Studio.

您如何跟踪/分析您的 .NET 应用程序?MSDN 在线帮助提到了 Visual Studio Team(我没有),还有 Windows Performance Toolkit。但是,您是否可以推荐其他解决方案?最好(当然)是一种无需更改代码(手动)即可工作并且可以集成到 Visual Studio 中的解决方案。

采纳答案by McKenzieG1

See also this question. JetBrains dotTrace is the best .NET profiler I have found (and I have tried pretty much every one there is), because it is the only one that has low enough overhead to handle a processor-intensive application. It is also simple, accurate and well-designed - highly recommended!

另请参阅此问题。JetBrains dotTrace 是我发现的最好的 .NET 分析器(我已经尝试了几乎所有的分析器),因为它是唯一一个开销足够低来处理处理器密集型应用程序的分析器。它也简单、准确且设计精良——强烈推荐!

回答by Ben Hoffstein

回答by MagicKat

I like dotTrace3.1 It has worked really well for me.

我喜欢 dotTrace3.1 它对我来说非常有效。

回答by Hallgrim

CLR Profileris quite good.

CLR Profiler相当不错。

回答by Ted Elliott

If you are looking for something free, I use NProf. Although its pretty limited and may crash or hang on certain programs.

如果您正在寻找免费的东西,我使用 NProf。尽管它非常有限,并且可能会在某些程序上崩溃或挂起。

http://nprof.sourceforge.net/Site/Description.html

http://nprof.sourceforge.net/Site/Description.html

回答by Stacy A

回答by DB Tech

Not free, but I just had a tough issue in huge code base with streams. Visual Studio's profiler got me close, but Antz Profiler locked it down. It isn't free, but it was much less painless than setting up Visual Studio.

不是免费的,但我在带有流的庞大代码库中遇到了一个棘手的问题。Visual Studio 的分析器让我很接近,但 Antz Profiler 锁定了它。它不是免费的,但它比设置 Visual Studio 轻松得多。

回答by Julien Hoarau

.NET Memory Profileris an excellent tool for profiling memory usage.

.NET Memory Profiler是一款出色的内存使用分析工具。

回答by chlb

Our team uses EQATEC Profiler, I've found it simple and easy to use. It works without changes to the source code, but I don't think Visual Studio integration is possible.

我们的团队使用EQATEC Profiler,我发现它简单易用。它无需更改源代码即可工作,但我认为 Visual Studio 集成是不可能的。

回答by user1983691

I think this is the best free one: http://www.productivity-boost.com/Download.aspx

我认为这是最好的免费版:http: //www.productivity-boost.com/Download.aspx

The website is german but you can just download it, the software is english.

该网站是德语的,但您可以下载它,软件是英文的。