Importing profiling resources
You can import profiling resources such as profiling data or profiling filters from a file. The profiling file could have been generated by a stand-alone profiling session, redirected by the Agent Controller, or saved to an external file during an earlier profiling session.
Importing profiling data from a file
- Select File > Import. The Import wizard opens.
- Select Profiling and Logging > Profiling File. Click Next. The Profiling File window opens.
- Specify the Profiling file to import and the Project and Monitor to contain it once it has been imported. The import wizard expects a .trcxml file by default.
- Specify whether to import either the Full profiling file or only a specific range of the file specified in percentages.
- Specify whether to show heap statistics only, execution statistics only, or all details.
- Specify which profiling filters to apply to the data as it is imported. If there are no filters defined, you can open the Filter tab and click New... to create a new Import Trace filter.
- Optional: Define your filter by using one or both of the Filter mechanisms on the two tabs: Standard or Advanced. The Standard tab lets you quickly set some simple, common filters. The Advanced tab lets you create highly customized filters.
- To define a standard filter:
- To filter out data that matches a pattern, specify a string pattern in the Filter String field.
- Select the object type to filter by, i.e. filter by package, class or method.
- To define an advanced filter:
- Click the Advanced tab. The Advanced filtering table shows all the filter criteria defined. Profiling data entries that match one or more of the criteria will be filtered out during import.
- To add an entry in the table, click Add. Select the attribute you want to filter on from Attribute list. Select the operator (like performs a pattern match). Enter a value that profiling data entry must have for that attribute in order to be filtered:
- Use an asterisk (*) to represent any string.
- Use a bar (|) to represent a non-exclusive "or".
Click OK.
- To edit an existing entry, select it, click Edit and modify the fields.
- To remove an entry, select it and click Remove.
- Click Finish.
The imported resources appear in the Profiling Monitor view.
Importing profiling filters from a file
Profiling filters saved from previous profiling sessions can be imported and reused. To import a profiling filter:
- Select File > Import. The Import wizard opens.
- Select Profiling Filter. Click Next.
- In the Import Profiling Filter window, specify the file name that contains the profiling filter in the Filter file field.
- Using the arrow keys, select the filters that you want to be imported from the specified profiling filter file.
- Click Finish. The profiling filters are imported and ready to be used for the current profiling session.
Related concepts
Overview of the Profiling Tool
Profiling resourcesRelated tasks
Saving profiling resources
Profiling an application
(C) Copyright IBM Corporation 2000, 2008. All Rights Reserved.