diff options
author | 2012-03-01 15:44:37 -0800 | |
---|---|---|
committer | 2012-03-01 20:16:39 -0800 | |
commit | a362c769d442e7ef1ffcd2af30eb3c2acab4a2b7 (patch) | |
tree | 7c952d68ddbd121b7a2ae8dd5c963f33dd46690a /services/surfaceflinger/EventThread.cpp | |
parent | 43d8a95fa8dfd26ba8c56ac7489a8bc77c77034c (diff) |
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 af0da0bdb22c..3c045d71e5a9 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; |