Begin thread analysis by collecting thread analysis data for a
profiling run.
To collect data:
- In the Profiling tab (Overview subtab) of the Profile dialog box,
select the Thread Analysis profiling set.
- To modify settings in the profiling set, click Edit,
then Next, to display the Thread Analysis page. You can take the following actions:
- Disable data collection for the UML2 Object Interactions view. To do this,
expand the Thread Information node and select the Thread
Analysis entry. Clear the Collect UML2 Sequence Diagram
object interaction data check box. Note that the UML2 Object Interactions
view makes it possible to identify objects responsible for thread bottlenecks.
- Collect data for boundary classes that are excluded by the filter set.
To do this, expand the Time Analysis node. Select
the Execution Time Analysis check box. On the Execution
Time Analysis page, select the Collect boundary classes excluded
by the filter set check box, and set the boundary class depth.
- Optional: Specify a number of method invocations or
an amount of time as the limit for data collection. This can speed
up the data collection process.
- In the Profile dialog box, click the Profiling tab
and the Limits subtab.
- Enter instructions for stopping profiling after a specific number
of method invocations or after a specific amount of time.
- Click Profile to start your application.
- Exercise the parts of your application that are experiencing thread
bottlenecks. You can now stop your application.