JetBrains dotTrace, is it possible to profile source code line by line? else I need another tool
Question
I am using JetBrains dotTrace, I've profiled my app which is entirely CPU bound. But the results as you walk down the tree don't sum to the level above in the tree, I only see method calls not the body lines of the node in questions method.
Is it possible to profile the source code line by line.
i.e for one node:
- SimulatePair() 99.04%
--nextUniform() 30.12%
--IDCF() 24.08%
So the method calls nextUniform + IDCF use 54% of the time in SimulatePair (or 54% total execution time I'm not sure how to read this) regardless what is happening the other 46% of SimulatePair I need some detail on a line by line basis.
Any help or alternative tools is much appreciated.
Thanks
Solution
Check out ANTS ...
Line-level code timing – drill down to the specific lines of code responsible for performance inefficiencies
OTHER TIPS
dotTrace 6 supports line by line profiling. Also, with the use of the Profiler API you can set via code which parts of the application you want to profile via PerformanceProfiler.Start and PerformanceProfiler.Stop.
Really easy to use and powerful.
For the benefit of future searchers, dotTRACE 4.0 BETA supports line-by-line profiling. It helped me find an endless loop.
Here's the method I use. It's simple, free, gives you line by line info, and suffers no such confusions.