page.title=Tracer for OpenGL ES @jd:body
Tracer is a tool for analyzing OpenGL for Embedded Systems (ES) code in your Android application. The tool allows you to capture OpenGL ES commands and frame by frame images to help you understand how your graphics commands are being executed.
Note: The Tracer tool requires a device running Android 4.1 (API Level 16) or higher.
Tracer can be run as part of the Eclipse Android Development Tools (ADT) plugin or as part of the Device Monitor tool.
To run Tracer in Eclipse:
To run Tracer in Device Monitor:
Tracer captures OpenGL ES command execution logs and can also capture progressive images of the frames generated by those commands to enable you to perform logical and visual analysis of your OpenGL ES code. The Tracer tool operates by connecting to a device running Android 4.1 (API Level 16) or higher that is running the application you want to analyze. The Tracer tool captures trace information while the application is running and saves it to a {@code .gltrace} file for analysis.
Figure 1. Trace capture dialog box.
To capture an OpenGL ES trace for an Android application:
Note: If you are tracing the default activity for the application, you can leave this field blank.
Note: If you want to capture progressive frame images for each drawing call, enable the Read back currently bound framebuffer on glDraw*() option. Be aware that using this option can result in large trace files.
After you have generated a trace, you can load it for review and analysis.
To review a captured trace: