Getting information from the Method Details view
The Method Detail view provides tools for focusing on data that indicates potential performance problems. This view presents data for a single method, its callers, and its descendants.
Open the view by double-clicking a node in the Performance Call Graph view.
The Method Details view provides complete performance data for the currently displayed method, including information about its callers and descendants. Use any of the following approaches to find potentially significant data:
- Orient yourself in your program’s calling structure by referring to the Performance Call Graph view. The Method Detail view and the Performance Call Graph view are synchronized, so that selecting a method in one automatically updates the display in the other. You can use either view to find the data 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 drop-down list. For example, you can highlight all methods that are the immediate parents of the method that is currently displayed. Click on a method in the list to display it in the Method Details view. For information about the highlighting categories, see Performance Call Graph data commands
- 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 and select Subtree > Delete Subtree from the pop-up menu. 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 , and select Filter > from the pop-up menu, 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 selecting Subtree > Focus on Subtree from the pop-up menu. This makes the currently displayed method the root node of the call graph. Note that you can undo any subtree command by selecting Subtree > Undo Last Subtree Operation, or undo all subtree operations by selecting Subtree > Reset to Root.
- 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 and select Subtree > Hide Subtree from the pop-up menu. To hide only the method itself, or the class or package that it belongs to, right-click and select the corresponding Hide command from the Filter> menu.
Parent topic
Viewing and analyzing performance data
Related concepts
Common causes of slow performance
Related tasks
Getting information from the Performance Call Graph view
Related reference
The Method Details view