When you double-click the OpenGL Profiler icon, the window shown in Figure 1-1 opens. You use this window to set up a profiling session. You can start profiling an application either by launching it through OpenGL Profiler or by attaching the profiler to an application that’s already running.
Before you attach or launch your application, select Collect Trace. You also have the option to collect backtraces. After your application launches or attaches, you may see small pauses or stutters in the application. This is normal behavior that is due to the large amount of data that OpenGL Profiler writes out when collecting a trace. It does not significantly affect the performance statistics.
Attaching to a Running Application
Launching an Application from OpenGL Profiler
To attach OpenGL Profiler to a running application:
Select “Attach to application.”
In the list that appears, select the application you want to profile.

Click Attach.
The status changes from idle to running, and the application list dims. Now that the profiler is attached to the application, you can perform any of the tasks described in the rest of this document.
OpenGL Profiler begins collecting data as soon as it attaches to your application. Data collection ends when you quit the application or click the Detach button in the OpenGL Profiler window. You can temporarily stop data collection by clicking Suspend.
Detaching lets the application continue to run, which is useful for applications (like shell tools) that do not have a user interface.
To set up OpenGL Profiler to launch an application:
Select “Launch application.”
Click the plus (+) button and navigate to the application you what to profile, then choose it.
You can add as many applications as you’d like, but you can profile only one at a time.
If your application needs launch arguments, click the Launch Arguments text field and add them.
Click the disclosure triangle to view the optional launch settings.
You can use these settings when you want to profile an application under specific conditions. For example, you can use a custom pixel format, simulate how the application would work using a specific graphics driver, and set additional environment variables. See “Customizing Launch Settings” for details.
Click Launch.
The status changes from idle to running, and the application and environment variables lists dim.
OpenGL Profiler begins collecting data as soon as it launches your application. Data collection ends when you quit the application or click the Kill button in the OpenGL Profiler window. You can temporarily stop data collection by clicking Suspend.
Last updated: 2008-02-08