跟踪 ASP.NET 应用程序中的所有方法调用

thr*_*thr 5 c# asp.net debugging trace

我需要将一段时间内(例如 24 小时)ASP.NET 应用程序中的所有方法调用跟踪到日志文件中。正在寻找允许我执行此操作的工具?我有兴趣得到这样的东西:

2009-10-12T13:00:41 MyClass.MyMethod("arg1.toString()", "arg2.toString()") 
... other nested calls inside this method ...
2009-10-12T13:00:42 MyClass.MyMethod() 0.2312 seconds
Run Code Online (Sandbox Code Playgroud)

基本上是一种查看每个方法调用花费多长时间以及获得什么输入的方法。

Rob*_*est 3

您可能想查看ANTS Profiler。它可以为您提供逐行执行时间,并且可以选择执行 .NET 框架代码以及您自己的代码。