我们有一个在生产环境中运行的 .net Windows 窗体应用程序。有没有我们可以安装的免费工具来检查调用哪个类的哪个方法以及顺序是什么? 尝试过 CLR Profiler,但它似乎只显示内存使用情况而不显示方法调用树。
谢谢。
最佳答案
Ant 性能分析器:
您可以使用以下 Ants Performance Profiler。
ANTS Performance Profiler is a code profiler for .NET desktop, ASP.NET, and ASP.NET MVC applications. It helps you debug your application quickly by giving you a complete picture of your application's performance.
Visual Studio 分析器:
Visual Studio 也有自己的免费分析器。
教程:
Visual studio profiler tutorial
JetBrains:
我推荐以下由 JetBrains 创建的分析器。
JetBrains 为 Visual Studio 创建了很多有用的工具,最好的例子是:ReSharper。 你绝对应该试试这个分析器。
所有分析器都会为您提供应用程序中的方法,更重要的是:它们被调用了多少次。如果可能,您应该始终尝试减少这些调用。
关于c# - Windows 窗体应用程序跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18444523/