Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Starting a Profiling Session

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.


Figure 1-1  The main window in OpenGL Profiler

The main window in OpenGL Profiler

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.

In this section:

Attaching to a Running Application
Launching an Application from OpenGL Profiler


Attaching to a Running Application

To attach OpenGL Profiler to a running application:

  1. Select “Attach to application.”

  2. In the list that appears, select the application you want to profile.


    Choosing an application to attach to OpenGL Profiler.
  3. 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.

Launching an Application from OpenGL Profiler

To set up OpenGL Profiler to launch an application:

  1. Select “Launch application.”

  2. 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.

  3. If your application needs launch arguments, click the Launch Arguments text field and add them.

  4. 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.

  5. 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.



< Previous PageNext Page > Hide TOC


Last updated: 2008-02-08




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice