dotTrace 2023.3 Help

Fold Recursive Calls

Recursive call stacks can be deep and difficult to analyze. If you want to see which functions occupy the most time and how many calls are made, use folding. dotTrace recalculates the tree of recursive calls and presents information by function signatures.

Recursive calls are marked with the Ico recursive icon.

Folded recursive calls are marked with the Ico recursive collapse icon.

To fold a recursive call

  1. Select a recursive function call in the Thread Tree or Call Tree view.

  2. Click Ico recursive to fold the function call.

To unfold a recursive call

  1. Select a recursive function call in the Thread Tree or Call Tree view.

  2. Click Ico recursive collapse to unfold the function call.

Alternatively, you can choose View | Toggle Recursion Folding on Subtree from the menu bar or press Ctrl+Space to fold or unfold recursive calls.

The SetValue function is marked with the Ico recursive icon, so you can click the icon and fold all calls.

Recursive unfolded

The Ico recursive icon is replaced with the Ico recursive collapse icon and the number of calls is recalculated.

Recursive folded

Last modified: 03 November 2023