Collecting performance data

Begin performance analysis by collecting execution time analysis data for a profiling run.

Prerequisites:

To collect data:

  1. In the Profiling tab (Overview subtab) of the Profile dialog box, select the Execution History - Full Performance Call Graph profiling set.

  2. Verify that all settings are correct: Click Edit, and do the following in the Edit Profiling Set dialog box:

    1. Make sure the checkboxes for Time Analysis and Execution Time Analysis are checked.

    2. Select Execution Time Analysis.

    3. Select Show execution flow graphical details.

    4. Optionally, select whether to collect instance level information for display in the Instance Statistics view, which is used for studying garbage collection. Collecting this information slows down the data collection process.

    5. Optionally, select whether to collect boundary classes excluded by the filter, and if so at what depth; this can be useful for detailed trace analysis. Collecting this information slows down the data collection process.

    6. Optionally, you can select additional profiling types (except for the Leak Detection profiling types) to collect supplementary data at the same time. Note however that collecting more data slows the data collection process.

    7. Click the Finish button.

  3. Click the Profile button to start your application.

  4. Exercise the parts of your application that you want to profile. You can now terminate your application.

Note: It is sometimes useful to limit data collection. For information, read:

Limiting performance data collection
Limit performance data collection in order to focus on specific parts of your code and to speed up the profiling process.

 

Parent topic

Detecting performance bottlenecks

 

Related tasks

Viewing and analyzing performance data

Related reference
Execution Time Analysis page, Edit Profiling Set dialog box

Related information
Getting started: Profiling J2EE applications