Tools to profile function execution times of a .NET program

烈酒焚心 提交于 2019-12-21 21:33:28

问题


What tools are available to profile a .NET program by measuring function execution times and generating graphs to visualize the time spent at various points in the call graph?


回答1:


AQTime and dotTrace are two very good commerical profilers.

A free option would be ProfileSharp, though I have had little luck with it.

Microsoft provides the CLR Profiler as well, which works well, but has fewer features.




回答2:


It'll cost you but Ants Performance Profiler will do the job.




回答3:


CLR Profiler




回答4:


There is a free C# IDE SharpDevelop 3.1, which has integrated profiler, and it is compatible with Visual Studio solutions.




回答5:


What's the goal? Do you just want to 1) See a nice call graph with times on it, or 2) Locate cost points to optimize to make your program faster?

If the answer is (2), and you don't mind something that's free, you can try this.

This gives an example of how to use it.



来源:https://stackoverflow.com/questions/947658/tools-to-profile-function-execution-times-of-a-net-program

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!