For large and complicated applications, it normally takes a lot of time to profile them. While analysing a snapshot you may find functions or even classes that seem to be time-consuming. It would definitely help to make sure that optimizing those functions and classes can increase overall application performance. The Adjust Function option allows you to instantly see the impact of optimizing a function to a certain extent.
If you want to exclude the selected function or reduce the execution time practically to zero, you can easily do it.
To reduce the execution time of a function call to zero
To reduce the execution time of all function calls to zero
To adjust execution time of a function or class
- Choose a function you want to examine.
- On the menu bar, choose or right-click the function, then click Adjust Time | Adjust Time in the context menu.
- The Adjust Time dialog opens. Configure options in this dialog. For more information, see Adjust Time.
- Click OK.
Look through examples below. The first figure shows that the most time is spent in
The second figure shows what changes if the execution time of this function is adjusted by 50%:
Pay attention, that dotTrace doesn't show adjusted time for thread nodes in the Threads Tree view. The time for a thread is a sum of work time and idle time, that's why it's not possible to determine exactly how time adjustment affects the time of the thread.
To restore original value for a function
To restore values for all functions available in the current tab
To clear all adjustments in the current snapshot, open the Overview view and click Clear all adjustments under the Adjusted Functions section.