The Performance Call Graph view provides tools for focusing
on data that indicates potential performance problems. This view
displays not only an overview of the performance data collected
for a profiling run, but also, when you pause the cursor over a
method or calling path segment, detailed statistical information.
Open the view by right-clicking on a profiling
resource and selecting Performance Call Graph
from the pop-up menu.
Use any of the following approaches to find potentially
significant data:
- Orient yourself in the call graph.
- Click the Show Call Graph button
to display the call graph overview
for navigating in large or complex call graphs.
- Use the Zoom slider to adjust the call graph’s size and scope.
- With the mouse cursor on the call graph, hold down the left
mouse button so that the cursor is displayed as a hand, and drag
the cursor left, right, up, or down.
- Highlight methods that are related, or that share important
characteristics, by using the Highlight drop-down list. For example, you can highlight all methods that are the immediate
parents of the selected method. For more information, see Performance Call Graph data commands
- Search for individual methods by name by clicking the Find
method in Call Graph button
.
- Focus on a specific portion of a program by right-clicking
a node and then selecting from the pop-up
menu. Note that you can undo any subtree command by selecting ,
or undo all subtree operations by selecting .
- Investigate "what-if" scenarios to gauge the impact of
proposed code changes:
- Delete an entire node, and subtract
its performance data from the data set. Right-click a node and select from
the pop-up menu. The performance statistics now show how the application would
perform without the calls to the deleted subtree.
- Alternatively, delete individual methods, or entire classes
or packages, from the data set. Right-click a method, or a representative
of a class or package, and select Filter > from
the pop-up menu, followed by the appropriate Delete command.
- Simplify the call graph display:
- Hide nodes that do not interest you,
without deleting their performance data. Right-click a node and
select from the pop-up menu. The node
and all its descendants are removed from the display, but the times
for the subtree nodes are still included in the statistics for the
parent node.
- Hide uninteresting methods, classes, or packages. Right-click
a method, or a representative of a class or package, and select Filter
> from the pop-up menu, followed by the appropriate
Hide command.
- Adjust the level of detail displayed for a node. Right-click
a node, and use the commands included in Expand/Collapse> menu. Note that you can undo any subtree command by selecting , or undo all expand/collapse,
filter, and subtree operations by selecting .