This topic describes common profiling tasks. For more
detailed information, click the links in the right column.
To perform this task |
Follow these steps |
Calibrate the profiler. |
You need to calibrate the profiler the first time you use
your local JDK or a remote JDK for profiling.
|
Start profiling a local application. |
- Do one of the following:
- To profile the main project, choose Profile > Profile Main Project.
- To profile any individual project, right-click the project and choose
Profile Project.
- Select a profiling task.
- Click Run.
|
Modify a running profiling session. |
- While a profiling session is in progress, choose Profile > Modify Profiling Session from the main menu.
Alternatively, click Modify Profiling Session in the Profiler window.
- Select a Profiling Task.
- Click OK.
|
Profile a remote application. |
- Choose Profile > Attach Profiler from the main menu.
- Select the Project from the dropdown list at the top of the Select Profiling Task dialog box.
- Configure the attach mode.
- Configure the remote location to support profiling.
- Select a profiling task.
- Click Attach.
|
Attach to a local application. |
- Configure the target JVM to support profiling.
- Start the application on the target JVM.
- Choose Profile > Attach Profiler from the main menu.
- Select the project.
- Configure the attach mode.
- Click Attach.
|
Stop a profiling session. |
- Choose Profile > Stop Profiling Session from the main menu.
|
Take a snapshot of profiling results. |
- While a profiling session is in progress,
choose Profile > Take Snaphot of Collected Results from the main menu.
|
Take a heap dump. |
- While a profiling session is in progress,
choose Profile > Take Heap Dump from the main menu.
|