From 3e820bee2b15a4b0ebf11d455dce5119ca0a94f7 Mon Sep 17 00:00:00 2001 From: Joe Fernandez Date: Tue, 19 Jun 2012 15:48:29 -0700 Subject: docs: GL Tracer, Device Monitor Tools for SDK r20 Change-Id: Ib45210b88a7eb93e3bba4f7d535f344ccb054a72 --- docs/html/tools/help/gltracer.jd | 103 +++++++++++++++++++++++++++++++++++++++ docs/html/tools/help/monitor.jd | 24 +++++++++ 2 files changed, 127 insertions(+) create mode 100644 docs/html/tools/help/gltracer.jd create mode 100644 docs/html/tools/help/monitor.jd (limited to 'docs/html/tools/help') diff --git a/docs/html/tools/help/gltracer.jd b/docs/html/tools/help/gltracer.jd new file mode 100644 index 0000000..35c405e --- /dev/null +++ b/docs/html/tools/help/gltracer.jd @@ -0,0 +1,103 @@ +page.title=Tracer for OpenGL ES +@jd:body + +
+
+

In this document

+
    +
  1. Running Tracer
  2. +
  3. Generating a Trace
  4. +
  5. Analyzing a Trace
  6. +
+

See also

+
    +
  1. Tools
  2. +
+
+
+ +

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.

+ + +

Running Tracer

+ +

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:

+ +
    +
  1. Start Eclipse and open a workspace that contains an Android project.
  2. +
  3. Activate the perspective for Tracer by choosing Window > Open Perspective > +Other...
  4. +
  5. Select Tracer for OpenGL ES and click OK.
  6. +
+ +

To run Tracer in Device Monitor:

+ +
    +
  1. Start the Device Monitor tool.
  2. +
  3. Activate the perspective for Tracer by choosing Window > Open +Perspective...
  4. +
  5. Select Tracer for OpenGL ES and click OK.
  6. +
+ +

Generating a Trace

+ +

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:

+ +
    +
  1. Connect the Android device using a USB cable and make sure it is enabled for debugging. For +more information, see Using Hardware Devices.
  2. +
  3. In Eclipse or Device Monitor, activate the Tracer for OpenGL ES +perspective.
  4. +
  5. On the toolbar, click the trace capture button ().
  6. +
  7. In the dialog box, select the Device to use for the trace.
  8. +
  9. In the Application Package field, enter the full application package name +containing the activity you want to trace, for example: {@code com.example.android.opengl}
  10. +
  11. In the Activity to launch field, enter the class name of the activity you +want to trace, for example: {@code OpenGLES20Complete} +

    Note: If you are tracing the default activity for the +application, you can leave this field blank.

    +
  12. +
  13. Select the desired Data Collection Options. +

    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.

    +
  14. +
  15. Enter a Destination File for the trace output.
  16. +
  17. Click Trace to start the trace capture.
  18. +
  19. On the connected device, exercise the functions of your application you want to trace.
  20. +
  21. In the dialog box, Stop Tracing to complete the tracing run.
  22. +
+ +

Analyzing a Trace

+ +

After you have generated a trace, you can load it for review and analysis.

+ +

To review a captured trace:

+ +
    +
  1. In Eclipse or Device Monitor, activate the Tracer for OpenGL ES +perspective.
  2. +
  3. On the toolbar, click the trace load button ().
  4. +
  5. After loading a trace, select a frame and review the OpenGL ES calls. Drawing commands are +highlighted in blue.
  6. +
\ No newline at end of file diff --git a/docs/html/tools/help/monitor.jd b/docs/html/tools/help/monitor.jd new file mode 100644 index 0000000..8e2ea36 --- /dev/null +++ b/docs/html/tools/help/monitor.jd @@ -0,0 +1,24 @@ +page.title=Debug Monitor +@jd:body + +

Android Debug Monitor is a stand-alone tool that provides a graphical user interface for +several Android application debugging and analysis tools. The Monitor tool does not +require installation of a integrated development environment, such as Eclipse, and encapsulates the +following tools:

+ + + +

Usage

+ +

To start Debug Monitor, enter the following command from the SDK tools/ +directory:

+
monitor
+ +

Start an Android emulator or connect an Android device via USB cable, and connect the Debug +Monitor to the device by selecting it in the Devices window.

-- cgit v1.1