In the main Puma window, make sure that a data file is highlighted and then click on
Analyze Call Tree (Graphical). The Analyze Call Tree (Graphical) window appears, as shown in Title not available.
This window shows how the performance data is distributed among the
libraries and procedures in the program. It gives you a variety of
choices for displaying the resource metrics that were summarized in the
Pan/Zoom window in the previous section.
If you invoke the Call Tree window from the main Puma window, as this tutorial has
done, it displays data for the entire program. You can also invoke it from
the Pan/Zoom window to see the data for an "exploded view," or subset of the data
samples.
Explore the pulldown menus on the Call Tree window to see the display
choices you can make. For example:
Metric lets you choose the resource metric to display. The bar graph can display one metric at a time. Click on User Cycles to see the display change.
Table 2-1 The Metric Pulldown Menu
| Samples Taken |
| Minor Page Faults |
| Major Page Faults |
| Signals |
| Messages Sent |
| Messages Received |
| Page Swaps |
| System Cycles |
| User Cycles |
| Files Open |
| Characters of I/O |
Granularity lets you choose the degree of aggregation of the data and
whether to display source line numbers. Choose Help:Granularity for explanation of the terms used in the Granularity menu.
Table 2-2 The Granularity Pulldown Menu
| In Routine |
| In Routine/Show Source Lines |
| In or Under Routine |
| In or Under Routine/Show Source Lines |
| In Source Line |
| In or Under Source Line |
| In Library |
| In or Under Library |
Both the Metric and Granularity menus are tear-off menus. When
you click on the dashed line at the top of the menu, the menu is displayed
in its own window. The menu persists in that window so that you can
invoke commands without having to redisplay it. You can also move the
menu to a convenient place in your workspace.
At the bottom of the Call Tree window, there are two more features you
can use to control the display.
Sort lets you arrange the bars alphabetically by routine name (which is useful for finding a particular routine) or by the frequency of the
selected metric (which is useful for showing where resource use is
concentrated).
Don't Show.. lets you suppress the display of routines that account
for less than your selected percentage of samples.
Finally, click the left mouse button on one of the bars in the chart. If you have
placed vanderbilt.c in the current directory, the Source Display window (Title not available) comes up with the source code that corresponds to that bar. (If
source code does not appear, click on the File:... menu in the Source Display
window to bring up a dialog box where you can enter a search path for the source
code.)
Click on File:Close to close the Call Tree window and return to the main Puma window.