diff options
author | Romain Guy <romainguy@google.com> | 2012-10-18 16:16:10 -0700 |
---|---|---|
committer | Alex Ray <aray@google.com> | 2013-07-30 13:57:00 -0700 |
commit | 3fc49adfd2887d01e54c4ad6a62eae5383101f62 (patch) | |
tree | 2f02c823713ab0ea66d2c14a9f55e2265bb7d9a7 | |
parent | b9fd6f986492d74125274722b8ea1a3819cd216a (diff) | |
download | system_core-3fc49adfd2887d01e54c4ad6a62eae5383101f62.zip system_core-3fc49adfd2887d01e54c4ad6a62eae5383101f62.tar.gz system_core-3fc49adfd2887d01e54c4ad6a62eae5383101f62.tar.bz2 |
Add runtime debugging capabilities to OpenGL
The shell property debug.egl.trace can now be set to:
0
disables tracing
1
logs all GL calls
error
checks glGetError after every GL call, logs a stack trace on error
systrace
logs each GL call to systrace
Change-Id: I34a2a2d4e19c373fd9eaa1b0cd93e67c87378996
-rw-r--r-- | include/utils/Trace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/utils/Trace.h b/include/utils/Trace.h index e5cc7ec..93e2285 100644 --- a/include/utils/Trace.h +++ b/include/utils/Trace.h @@ -67,6 +67,11 @@ // function body. #define ATRACE_CALL() android::ScopedTrace ___tracer(ATRACE_TAG, __FUNCTION__) +// ATRACE_NAME traces the beginning and end of the current function. To trace +// the correct start and end times this macro should be the first line of the +// function body. +#define ATRACE_NAME(name) android::ScopedTrace ___tracer(ATRACE_TAG, name) + // ATRACE_INT traces a named integer value. This can be used to track how the // value changes over time in a trace. #define ATRACE_INT(name, value) android::Tracer::traceCounter(ATRACE_TAG, name, value) |