Saving profiling resources

Profiling resources such as the data collected, or the profiling filters created can be saved to an external file.

Saving profiling data

Data collected from a profiling session can be saved to a file to be used later. Instead of the profiling data being displayed in the views it will be forwarded to file that you specify. The data can then be recreated in the Profiling Monitor view for consecutive sessions using Reload.

You can cause profiling data to be saved either when launching a process or after attaching to a process.

Saving profiling data when launching a process

After launching the process, no data is displayed in the Profiling and Logging views because it is being captured in the specified file instead.

Saving to a file after attaching to a process

After you attach to a process, you would start monitoring the application for any profiling data to be collected from it. To save the profiling data to a file, follow these steps before you start monitoring.

  1. Select the agent in the Profiling Monitor view. Right-click then select Properties. The Destination page opens.
  2. Enter the path and the name of the Profiling file to which you want to save the data from the profiling session.
  3. Complete the wizard.

You can now start monitoring the application. Click the Start Monitoring button A button with stylized icon from toolbar of the Profiling Monitor view. The file is created in the directory that you specified, and will contain the profiling data from the session.

Saving profiling filters

Profiling filters created during a profiling session can be saved to an external file.

  1. To export a filter from a profiling session, right-click on the process or agent, and select Export.
  2. Select Profiling filter from the Export wizard. Click Next.
  3. Select the filters that you want to export using the arrow keys.
  4. Specify the name of the file that the filters will be saved to in the Filter file field.
  5. Click Finish.

Saving profiling resources

Profiling resources such as hosts, monitors, processes and agents can be saved to an XMI file. To save the profiling resources that are visible in the Profiling Monitor view:

  1. Right-click on a profiling resource, then select Save. An XML Metadata Interchange (XMI) file is created for the selected object and saved in the workspace directory under a folder that is named after the project. The table below summarizes the saved objects and the corresponding file extensions used.
Objects File Extension
monitor .trcmxmi
host .trcnxmi
process .trcpxmi
agent .trcaxmi

Warning: Saving data to disk may be resource intensive. To limit the amount of profile data collected specify profiling filters.

Related concepts
Overview of the Profiling Tool

Related tasks
Profiling an application
Importing profiling resources