In the Method Detail view, you can focus on data that indicates
potential performance problems. This view shows complete performance data
for the currently displayed method, including information about its callers
and descendants.
Prerequisite: Open the view by double-clicking a node in the Performance
Call Graph view.
To find potentially significant data, take any of the following actions:
- Orient yourself in the calling structure of your program by referring
to the Performance Call Graph view. Because the Method Detail view and the
Performance Call Graph view are synchronized, selecting a method in one automatically
updates the display in the other. You can use either view to find the data
that you need.
- In the Method Detail view, navigate up the call chain to a caller
of the method by double-clicking an entry in the Caller column; navigate down
the call chain to a descendant of the method by double-clicking an entry in
the Descendant column.
- List methods that are related, or that share important characteristics,
by using the Highlight list. For example,
you can highlight all methods that are the immediate parents of the method
that is currently displayed. Click a method in the list to display it in the
Method Details view. For information about the highlighting categories, see Data commands in the Performance Call Graph and Method Details views
- Search for individual methods by name by clicking the Find
Method in Method Details button
.
- Investigate "what if" scenarios to gauge the impact
of proposed code changes:
- Delete the currently displayed method and all its descendants, and subtract
their performance data from the data set. Right-click in the Method Detail
view, then click . The performance statistics now show how
the application would perform without the calls to the deleted subtree.
- Alternatively, delete only the currently displayed method, or the entire
class or package to which it belongs, from the data set. Right-click in the
Method Detail view, then click Filter followed by the
appropriate Delete command.
- Use commands in the Method Detail view to manipulate the Performance
Call Graph view:
- Focus on a specific portion of the call graph by right-clicking in the
Method Detail view and then clicking . This makes the currently
displayed method the root node of the call graph. Note that
youYou can undo any subtree
command by clicking , or undo all subtree operations
by clicking .
- Hide uninteresting subtrees in the call graph, or filter out methods,
in order to simplify the corresponding Performance Call Graph display. To
hide the subtree that the currently displayed method represents, right-click
in the Method Details view, then click . To hide only the method
itself, or the class or package that it belongs to, right-click and then click
the corresponding Hide command from the Filter submenu.