Retired Document
Important: The information in this document is deprecated in Xcode 6. For Xcode 6 and later, read Instruments User Guide.
Introduction
OpenGL Profiler is an application that’s useful for debugging and assessing performance. It lets you look inside a running application and observe how the application uses OpenGL. It can track the OpenGL functions used by an application, how often each is used, and the execution time of each function. Using this data, you can determine how efficiently an OpenGL application uses the GPU. You can then use the data to guide application development, modifying those parts of the code that slow performance or appear to use resources inefficiently.
OpenGL Profiler has a variety of interactive features. After setting breakpoints, developers can investigate application resources (textures, programs, shaders, and so on), examine the values of OpenGL context parameters, look at buffer contents, and check other aspects of the OpenGL state.
You’ll want to read this document if you develop applications that use OpenGL on OS X. By reading it, you’ll learn how to set up OpenGL Profiler, collect data, set breakpoints, and use the results to track down problems.
Organization of This Document
This document is organized into the following chapters:
Getting Started shows how to get OpenGL Profiler running and how to start a profiling session.
Using Breakpoints provides details on setting breakpoints and describes the tasks you can accomplish when your application pauses.
Identifying and Solving Performance Issues gives advice on how to use OpenGL Profiler to track down and analyze performance issues in your application.
Controlling Profiling Programmatically describes how to add code to your application that will control various aspects of OpenGL Profiler during a profiling session.
See Also
These documents contain information that can help you analyze and optimize your OpenGL code:
OpenGL Programming Guide for Mac shows how to program using OpenGL on OS X. You’ll want to read the chapter “Improving Performance” to get an overview of the best programming practices to use as well as how to use Apple’s tools for identifying bottlenecks, and gathering and analyzing performance data.
OpenGL Driver Monitor User Guide which is a developer tool that lets you investigate how the graphics processing unit (GPU) works on a system-wide basis.
Instruments User Guide describes how to use Instruments to profile your application.
Copyright © 2015 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2015-03-09