c# - Windows 窗体应用程序跟踪

标签 c# .net winforms

我们有一个在生产环境中运行的 .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.

Ants Performance Profiler

Visual Studio 分析器:

Visual Studio 也有自己的免费分析器。

Visual studio profiler

教程:

Visual studio profiler tutorial

JetBrains:

我推荐以下由 JetBrains 创建的分析器。

JetBrains Profiler

JetBrains 为 Visual Studio 创建了很多有用的工具,最好的例子是:ReSharper。 你绝对应该试试这个分析器。

所有分析器都会为您提供应用程序中的方法,更重要的是:它们被调用了多少次。如果可能,您应该始终尝试减少这些调用。

关于c# - Windows 窗体应用程序跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18444523/

相关文章:

c# - 如何在 C# 中复制数组

c# - 数据表内存泄漏

c# - VB 编译器不隐式转换为对象?

c# - 按文本内容自动调整面板大小

c# - 当 dataGridView 行匹配文本框时显示错误消息

c# - Specflow:为每个功能指定多个场景

c# - 使用 C#,通过 URI 加载具有透明度的 .png 图像,裁剪它们并将它们绘制在 Canvas 上,然后将 Canvas 图像保存为 png 文件

C#、C++、WinAPI - 从另一个进程获取窗口数

c# - 在 Json 中更改属性的键

c# - C# 中的 UDP 代理?需要一点帮助