[PATCH 0/9] support for tracing Android Dalvik applications

Imre Deak imre.deak at intel.com
Wed Apr 11 08:19:30 PDT 2012


this patchset will enable tracing Android applications started from the
main Dalvik VM process (zygote/app_process). Here we can't use the
LD_PRELOAD method if we want to restrict the tracing to a specific
application: this main process is started during booting and never
stopped afterwards, akin to init on standard distributions. Applications
will be then forked off of the main process. So in addition to
preloading the apitrace wrapper library before the main process this
patchset will make it possible to enable tracing during _runtime_. The
enabling is done based on a user configurable Android property setting
that apitrace will match against the current process name.

In addition there are a couple of fixes, mostly related to the need to
track the GL state manually in certain cases. In particular these are
needed on Android or other EGL platforms. See PATCH 8/9 for an explanation
for this.

I have tested this so far with a couple of Android applications,
replaying the trace with egltrace on the host.

Please consider this for merging. Also any questions or feedback
regarding this patchset is welcome.

Thanks,
Imre

Imre Deak (9):
  gles: don't call unsupported glGetHandleARB
  gles: fix lookup for GLESv1 functions
  gles: fix GLES version string matching
  gles: sanity check GL_COMBINED_TEXTURE_IMAGE_UNITS
  Android: hard code the trace file path to be under /data
  Android: add support for dynamically enable/disable tracing
  Android: add usage instructions for tracing zygote applications
  optionally track the GL state manually
  egl: enable manual state tracking

 README.markdown               |   61 ++++++++++
 common/trace_writer_local.cpp |    6 +-
 egltrace.py                   |    3 +
 glproc_egl.cpp                |   15 ++-
 glsize.hpp                    |   14 ++-
 glstate.cpp                   |    2 +-
 glstate_images.cpp            |    3 +
 glstate_shaders.cpp           |   10 ++-
 gltrace.hpp                   |   13 ++-
 gltrace.py                    |  258 +++++++++++++++++++++++++++++++++++++++--
 trace.py                      |   56 +++++++++-
 11 files changed, 422 insertions(+), 19 deletions(-)

-- 
1.7.5.4



More information about the apitrace mailing list