Each stack in the Bottom-up pane corresponds to a call stack provided in the Call Stack pane. But the number of tree branches does not necessarily equal the number of stacks in the Call Stack pane. Since the stack in the Bottom-up pane is function-based and the stacks in the Call Stack pane are line-number-based, the number of stacks in these views may differ.
For example, in the screen capture below, the Bottom-up pane shows two stacks for the rankomp1 function whereas the Call Stack pane shows that three stacks exist.
If you navigate between stacks in the Call Stack pane using the navigation buttons, you will see that the rank function was called twice from the main function: first time (first stack in the Call Stack pane) - from line 871 and second time (third stack in the Call Stack pane) - from line 856. The Bottom-up pane aggregates these stacks into one and sums up their CPU time. For example, CPU time for the first stack under the rankomp1 function is calculated as follows: 22.503s = 20.384s + 2.119s |