Attaching Application Profiler to a running process

If you want to start seeing function runtimes and call counts for a running process, you can attach the Application Profiler tool. The IDE then displays the profiling data received from the instrumented binary running on the target.

Note: The application that you want to profile must have been built with profiling instrumentation, either for sampling execution positions or measuring function runtimes, then run from the command line. Also, your host machine must have an IP connection to your target machine.
To attach the Application Profiler to a running process:
  1. While the process is running, open the Profile Configurations dialog by choosing Run > Profile from the main menu area, or by right-clicking the corresponding application project and choosing Profile > C/C++ QNX Application Dialog from the context menu.
  2. Select C/C++ QNX Attach to Remote Process via QConn (IP) from the list on the left.
  3. Click the New button () to create a new configuration.
  4. Define the basic settings for launching the application.
    This involves defining the name, build configuration, and target on the Main tab.
  5. Select the Tools tab.
  6. Click Add/Delete Tool at the bottom.
  7. In the Tools selection dialog, check the Application Profiler box and click OK.
  8. If you want the IDE to display the QNX Application Profiler perspective when you attach to the process, check Switch to this tool's perspective on launch, below the Application Profiler tab.
  9. Click Apply to save the launch configuration settings.
  10. Click Profile.
    The Select Process dialog shows all currently running processes on the target specified by the configuration.
  11. Select the running process you want to profile, then click OK.
The IDE attaches the Application Profiler to the selected process and switches to the QNX Application Profiler perspective (if configured to do so). The Profiler Sessions view contains a new session that stores the profiling data being received from the process. For details on reading the results, see "Interpreting profiling data".