Opening source code from the Performance Call Graph or Method Details view
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.
Open the Performance Call Graph view by right-clicking on a profiling resource and selecting Performance Call Graph from the pop-up menu. Open the Method Details view by double-clicking a node in the Performance Call Graph view.
- In the Performance Call Graph view:
- Highlight the currently displayed methods that have source code available: Open the Highlight drop-down list and select Methods with Source.
- Right-click the method you want to examine, and select Open Source from the pop-up menu. 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 drop-down 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, and select Open Source from the pop-up menu. The source code is opened in the Java editor at the location where code for the method starts.
Parent topic
Viewing and analyzing performance data
Related reference
The Performance Call Graph view
Performance Call Graph data commands
The Method Details view