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

  1. Select File > > Import. The Import wizard opens.
  2. Select Profiling > Profiling File. Click Next. The Profiling File window opens.
  3. 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.
  4. Specify whether to import either the Full profiling file or only a specific range of the file specified in percentages.
  5. Specify whether to show heap statistics only, execution statistics only, or all details.
  6. 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.
    1. 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.
    2. To define a standard filter, you must complete the following steps:
      1. To filter out data that matches a pattern, specify a string pattern in the Filter String field.
      2. Select the object type for the filter. That is, whether to filter by package, class or method.
    3. To define an advanced filter, you must complete the following steps:
      1. 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.
      2. To add an entry in the table, click Add. Select the attribute you want to filter on from the Attribute list. Select the operator (like performs a pattern match). Enter a value that the profiling data entry must have for that attribute to be filtered, such as the following:
        1. Use an asterisk (*) to represent any string.
        2. Use a bar (|) to represent a non-exclusive or. Click OK.
      3. To edit an existing entry, select it, click Edit, and then modify the fields.
      4. To remove an entry, select it and click Remove.
  7. 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, you must complete the following steps:

  1. Select File > Import. The Import wizard opens.
  2. Select Profiling Filter. Click Next.
  3. In the Import Profiling Filter window, specify the file name that contains the profiling filter in the Filter file field.
  4. Using the arrow keys, select the filters that you want to be imported from the specified profiling filter file.
  5. Click Finish. The profiling filters are imported and ready to be used for the current profiling session.