When you identify a method as a possible cause of a performance
bottleneck, you can immediately display the source code, if available, for
further analysis. Source code is available only if you are profiling a Java™ project
that is currently open in the Java perspective.
To open the source code for a method:
- In the Performance Call Graph view:
- Highlight the currently displayed methods that have source code
available: Open the Highlight list and select Methods
with Source.
- Right-click the method you want to examine, then click Open
Source. The source code is opened in the Java editor
at the location where code for the method starts.
- In the Method Detail view:
- List the methods that have source code available: Open the Highlight list
and select Methods with Source. Note that the list
is a subset of all methods that are currently displayed in the Performance
Call Graph view, and that it does not necessarily include the
method currently displayed in the Method Details view.
- Right-click the method you want to examine, then click Open
Source. The source code is opened in the Java editor
at the location where code for the method starts.