OSDN Git Service

gltrace: Add support for tracing running applications.
authorSiva Velusamy <vsiva@google.com>
Tue, 18 Dec 2012 22:56:55 +0000 (14:56 -0800)
committerSiva Velusamy <vsiva@google.com>
Thu, 20 Dec 2012 18:38:47 +0000 (10:38 -0800)
commita73a97728befb5ba5ad647ab3b60058c4d536ba4
tree8636701bc18989ad4d7c9e9948b8c744de2c84d1
parent0859b78db2b094d20efb7b3e725c4732fcdeb4d5
gltrace: Add support for tracing running applications.

Currently, to activate OpenGL tracing, an application has to be
start with --opengl-trace option (or have a debug prop set).

This CL adds support for tracing an application which may already
be running. This is implemented as follows:
    - DDMS initiates a JDWP message to the VM indicating that
      opengl traces be enabled.
    - When that message is received, a flag is set that indicates
      that tracing should be enabled.
    - The trace flag is checked during every eglSwap() operation,
      and if it finds that tracing should be active and it isn't,
      then it starts the tracing component.

Change-Id: I3347fe89fc06c7404d7aa9360f4b21e5bf36ebcb
opengl/libs/EGL/egl.cpp
opengl/libs/EGL/eglApi.cpp
opengl/libs/GLES_trace/DESIGN.txt
opengl/libs/GLES_trace/src/gltrace_eglapi.cpp
opengl/libs/glestrace.h