These instructions provide typical settings for profiling portlets.
For comprehensive information on all profiling options, see Specifying profiling criteria.
From Rational® Developer,
switch to the Profiling and Logging perspective by
following these steps:
Select Window > Open
Perspective > Other.
Select the Show all check box.
Select Profiling and Logging. Click OK.
If the Confirm Enablement dialog box
appears, click OK.
Select Run > Profile... The Create, manage, and run configurations dialog
box appears.
Select Attach - Java Process from the Configurations list.
Click New.
Provide a Name for the new configuration.
On the Host tab, select a server from the Default
Hosts list. If your server does not appear on the
list, enter the Host name or IP address and click Add.
Click the Test Connection button to verify
the connection. If the test fails, follow the instructions and retry the test
until it is successful.
On the Profiling tab, select the Overview sub-tab.
Select one of the profiling sets or add a new one. The contents
of the profiling set that you selected are displayed in the bottom panel.
See Profiling sets and available views for
details on the profiling sets available. For example, select
the Execution History profiling set.
Click Edit to modify the profiling set.
Select the type of profiling data that you want to capture. For
example, the Execution History profiling set has Time Analysis > Execution Time Analysis preselected. Click Next.
Select one of the types of filter sets or add a new one. For example, select the Default filter set.
In the bottom pane, define the packages, classes and methods to
include or exclude from the filter set. For example,
Remove all entries from the Contents of selected
filter set box by selecting each entry and clicking Remove.
Click Add.
Enter * in the Package or
Class field.
Enter * in the Method Name field
Select EXCLUDE for the Rule.
Click OK.
Click Add.
Enter all or part of a package or class name that you want to
profile. For example, if your package name is com.ibm,
enter com.ibm.* to profile all classes in the package.
Enter * to profile all methods, or enter
the actual method name.
Select INCLUDE for the Rule.
Click OK.
Change the order of the filter sets using the Up and Down buttons.
The INCLUDE entry that you created should be the first
on the list.
Click Finish.
Click Apply > Close. This saves the default settings for profiling operations.
These options can be altered at runtime.