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.
To attach the Application Profiler to a running process:
-
While the process is running, open the Profile Configurations dialog by choosing from the main menu area, or by right-clicking the corresponding application project and choosing
from the context menu.
-
Select C/C++ QNX Attach to Remote Process via QConn (IP) from the list on the left.
-
Click the New button (
-
Define the basic settings for launching the application.
This involves defining the name, build configuration, and target on the Main tab.
-
Select the Tools tab.
-
Click Add/Delete Tool at the bottom.
-
In the Tools selection dialog, check the Application Profiler box
and click OK.
-
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.
-
Click Apply to save the launch configuration settings.
-
Click Profile.
The Select Process dialog shows all currently running processes on the target specified by the
configuration.
-
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".