Specifying the profiling filters
Creating a profiling filter enables you to specify the subset of information
that you want to analyze. When you apply filters to the profiling session, only
relevant details are channeled out to the views. Using filters is especially
useful when speed and efficiency is critical: the less data there is, the less
impact it has on the system, and the faster it can be collected.
To modify the filters of a profiling set collecting Memory/Leak Analysis and/or Execution Time Analysis information:
- Select Run > Profile....
- Select the configuration you wish to profile, then click on the Profiling tab.
- In the Overview sub-tab, select the profiling set you wish to use, then click Edit....
- Select Memory/Leak Analysis and/or Execution Time Analysis (if not already selected) and click Next.

Working with filter sets
- To create a new filter set, click Add beside the top pane,
name it, and then define the set in the lower pane.
- To modify a filter set, select it in the top pane and then make the
required changes in the lower pane.
- To enable or disable a filter set, check or uncheck it.
- To delete a filter set, select it and then click Remove.
Working with filters
Select the filter set containing the filters you would work with and then do
any of the following:
- To add a new filter, click Add beside the lower pane, then specify the
package/class, method, and whether the filter is an inclusion or an exclusion
criterion. Since filters are applied sequentially, starting with the
topmost filter, you may need to move filters Up or Down.
- To modify a filter, select it, then edit the package/class, method, and
include/exclude criteria fields.
- To delete a filter, select it, then click Remove.
Notes
- Filtering is done at collection time. Therefore, filters need to
be specified before you begin profiling.
- At most, one filter set can be applied to a profiling session.
- Filters exist in a filter set. A filter set needs to be created
even for a single filter.
- Only the first applicable filter is applied. Therefore you would declare
more specific criteria before less specific criteria. For example, to exclude
all classes from sun* except those in the AWT, you would set up the following:

Related concepts
Overview of the Profiling Tool
Related tasks
Profiling an application
Setting profiling preferences
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.