diff options
author | Jesse Hall <jessehall@google.com> | 2014-08-25 14:44:16 -0700 |
---|---|---|
committer | Jesse Hall <jessehall@google.com> | 2014-08-25 16:05:01 -0700 |
commit | 4d407a0f05ad9ba3c232ff5b6742495660c0e4ab (patch) | |
tree | 6e6996b8f1378b6034790f5fda73a3e22968ce36 /services | |
parent | f00945cfd7b105ad83aa0e26478681ee2ebf9bb7 (diff) | |
download | frameworks_native-4d407a0f05ad9ba3c232ff5b6742495660c0e4ab.zip frameworks_native-4d407a0f05ad9ba3c232ff5b6742495660c0e4ab.tar.gz frameworks_native-4d407a0f05ad9ba3c232ff5b6742495660c0e4ab.tar.bz2 |
surfaceflinger: Trace HW vsync enable
This makes it possible to tell whether two HW vsync signals are too
far apart because one was late, or because we turned HW vsync off
briefly between them.
Bug: 17259382
Change-Id: If4fba2a8a6013568349949ce87c5c36f0468d2a2
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/DisplayHardware/HWComposer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayHardware/HWComposer.cpp b/services/surfaceflinger/DisplayHardware/HWComposer.cpp index a8dcf98..6302053 100644 --- a/services/surfaceflinger/DisplayHardware/HWComposer.cpp +++ b/services/surfaceflinger/DisplayHardware/HWComposer.cpp @@ -524,6 +524,10 @@ void HWComposer::eventControl(int disp, int event, int enabled) { if (!err) { int32_t& events(mDisplayData[disp].events); events = (events & ~eventBit) | newValue; + + char tag[16]; + snprintf(tag, sizeof(tag), "HW_VSYNC_ON_%1u", disp); + ATRACE_INT(tag, enabled); } } // error here should not happen -- not sure what we should |