Use CLR Profiler for C# Call Graphs and Optimization
Posted on 2005-06-28 21:08 Arping.Net探索 阅读(672) 评论(0) 编辑 收藏 举报Use CLR Profiler for C# Call Graphs and Optimization
I recently had the need to debug some code and was looking for an easy way to generate the call graph of the application. For a given function I wanted to see who its callers were and who the callers of the callers were, etc. Turns out Microsoft has a free tool called the CLR Profiler that does precisely this. Here is how to use it:
- Download and run the executable from this URL.
- Click on "Start" and select "Run".
- Type C:\CLR Profiler\Binaries and click "OK".
- Click on ClrProfiler.exe.
- Click on "Start Application".
- Select the application you want to analyze.
- Then click on "Kill Application".
- To view the call graph click on View and select "Call Graph".
This can also be used to profile the program and to improve and optimize its performance. Also it works with ASP.NET applications. Overall, an extremely cool application.
(from http://blogs.msdn.com/asimj/archive/2004/12/01/273355.aspx)