diff options
author | Mathias Agopian <mathias@google.com> | 2012-03-01 15:44:37 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-03-01 20:16:39 -0800 |
commit | 841cde55549cea7a344a1705b18d57a0c6c8ec45 (patch) | |
tree | 79aee4ae1c3267dec84c6cf322c2e310743ddf5a /services/surfaceflinger/EventThread.cpp | |
parent | 8c50c870153ba849ecc6b0bfcb2d950367359f6f (diff) | |
download | frameworks_native-841cde55549cea7a344a1705b18d57a0c6c8ec45.zip frameworks_native-841cde55549cea7a344a1705b18d57a0c6c8ec45.tar.gz frameworks_native-841cde55549cea7a344a1705b18d57a0c6c8ec45.tar.bz2 |
add more ATRACE
Change-Id: I6cc5759fb0a05427680488fd12ae797e77644f3d
Diffstat (limited to 'services/surfaceflinger/EventThread.cpp')
-rw-r--r-- | services/surfaceflinger/EventThread.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/EventThread.cpp b/services/surfaceflinger/EventThread.cpp index af0da0b..3c045d7 100644 --- a/services/surfaceflinger/EventThread.cpp +++ b/services/surfaceflinger/EventThread.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#define ATRACE_TAG ATRACE_TAG_GRAPHICS + #include <stdint.h> #include <sys/types.h> @@ -21,6 +23,7 @@ #include <gui/DisplayEventReceiver.h> #include <utils/Errors.h> +#include <utils/Trace.h> #include "DisplayHardware/DisplayHardware.h" #include "DisplayEventConnection.h" @@ -146,6 +149,7 @@ bool EventThread::threadLoop() { // at least one listener requested VSYNC mLock.unlock(); timestamp = mHw.waitForRefresh(); + ATRACE_INT("VSYNC", mDeliveredEvents&1); mLock.lock(); mDeliveredEvents++; mLastVSyncTimestamp = timestamp; |