Saving profiling data to an external file
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
- While launching a process use the Destination sub-tab under the Profiling tab to specify Send profiling data to a file.
- Enter the path and the name of the Profiling file to which you want to save the data from the profiling session.
- By default, the file is saved with extension trcxml, but you can specify your own extension by enclosing the file name and extension in double quotation marks.
- You can still pause and restart monitoring as if profiling data were being directed to the Profiling and Logging views. You can also run garbage collection or Collect Object Reference information.
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.
- Select the agent in the Profiling Monitor view. Right-click then select Properties. The Destination page opens.
- Enter the path and the name of the Profiling file to which you want to save the data from the profiling session.
- Complete the wizard.
You can now start monitoring the application. Click the Start Monitoring button
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.
Related concepts
Overview of the Profiling ToolRelated tasks
Profiling an application
Saving profiling resources
Importing profiling resources