diff options
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; |