Compare Performance Improvement in DotTrace
Hi,
I am using VS 2017 and DotTrace 2017.2. I was able to track down the method that have to be optimized and I did it. How can I compare the performance improvement or simply the time this method taken before the refactoring and after? I tried Sampling, Trace and Line-by-Line but couldn't figure out the exact times. It somehow reported significantly different timings when I run the same workflow the next time.
Best,
Zeeshan
Please sign in to leave a comment.
Hi Zeeshan,
Total time spent in some method and its subtree is just a time near the method in call tree: https://www.jetbrains.com/help/profiler/Studying_Profiling_Results__Call_Tree.html
If you want to see own time of some method, you need to open properties of the method: https://www.jetbrains.com/help/profiler/Studying_Profiling_Results__Studying_Function_Timings.html
If the optimized method is called from multiple places, you can merge all calls by pressing Ctrl+Shift+T: https://www.jetbrains.com/help/profiler/Studying_Profiling_Results__Opening_in_a_New_Tab.html
Also, you can compare two snapshots (https://www.jetbrains.com/help/profiler/Studying_Profiling_Results__Comparing_Profiling_Data.html ), but there could be some incorrect percents (this functionality will be reworked soon).
Different timings in different profiling modes is a normal behavior as in Tracing and Line-by-line modes time measurement may be inaccurate due to profiler overhead: https://www.jetbrains.com/help/profiler/Profiler_Options.html