diff options
author | Romain Guy <romainguy@google.com> | 2012-10-18 17:37:54 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-18 17:37:54 -0700 |
commit | f58475b5ae4ccb3a31c05c79da8b2914c62a3510 (patch) | |
tree | 2c03b2724d71a79a63eff8720b2caccf2052e1ce /include | |
parent | caadbc5324cd4503450ac6bd9bb09c3c5fcb7430 (diff) | |
parent | 60393d45207b6548e1f61ca104fa59aecee87d30 (diff) | |
download | frameworks_native-f58475b5ae4ccb3a31c05c79da8b2914c62a3510.zip frameworks_native-f58475b5ae4ccb3a31c05c79da8b2914c62a3510.tar.gz frameworks_native-f58475b5ae4ccb3a31c05c79da8b2914c62a3510.tar.bz2 |
am 60393d45: Merge "Add runtime debugging capabilities to OpenGL" into jb-mr1-dev
* commit '60393d45207b6548e1f61ca104fa59aecee87d30':
Add runtime debugging capabilities to OpenGL
Diffstat (limited to 'include')
-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) |