Importing Application Profiler data
You can import Application Profiler sessions from XML files generated by the IDE or import profiling data produced by an application or kernel event trace that ran on a QNX target.
-
Select Next.
, then click The import wizard displays the Import Application Profiler Data window, which lets you specify the import file and the application and library binaries that generated the profiling results.
-
In Import From File, specify the file containing the data that you're importing.
You can enter an absolute host path or click Browse to open a window that lets you choose a workspace or local file, using a file selector. When providing a name, you can use ${workspace_loc:*} to specify the current workspace; for example: ${workspace_loc:project_name/results_file}.
In the file selector, you can pick a file with one of these naming conventions:- gmon.out.* — for position sampling and call count data
- *.ptrace — for function runtime measurement data
- *.kev — for kernel event trace logs containing profiling data
- *.xml — for profiling sessions that were exported from the IDE
If you select an XML file, the remaining fields in the window are greyed out and you can skip to Step 6.
-
In Executable File, specify the executable binary that produced the profiling results.
Like the previous text field, you can manually enter a filepath or click Browse to pick a file from the workspace or filesystem through a file selector. The ${workspace_loc:*} variable is also supported.
-
In the Libraries Search Path panel, add the paths of any libraries that the profiled application
uses.
These paths tell the IDE where to find shared libraries referenced by the profiling data. This UI control behaves the same way as the Libraries tab in the launch configuration.
When you've defined the necessary paths, if the profiled application uses source code compiled on another machine, click Next; otherwise skip to Step 6.
- Optional:
In the Binary Path dialog, specify any additional required source code paths.
The Source Lookup Path panel lists the host paths that the IDE should search to find source code that was part of the instrumented binary but wasn't compiled on the host. This UI control behaves like the Source tab in the launch configuration.
-
Click Finish.
The IDE begins importing the data into a new Application Profiler session, which it displays in the Analysis Sessions view. The session follows the standard naming convention consisting of the binary that produced the profiling results followed by a new, unique session number. You can rename the session by right-clicking its entry and choosing Rename.