diff options
author | Yangster-mac <yanglu@google.com> | 2018-10-09 20:48:23 -0700 |
---|---|---|
committer | Yang Lu <yanglu@google.com> | 2018-10-10 05:41:37 +0000 |
commit | ba5bf0d4014702541851da82b3164797a7f938fc (patch) | |
tree | ea004ea00fa93e6090e3c01effd892eac3bcda58 /libs/hwui/JankTracker.cpp | |
parent | 96af49eb0179d672eae72aa517946475697ee463 (diff) |
Log the davey event.
Test: statsd test
Fix: 117528646
Change-Id: Idb7cc37cd18047120adabbc9fbda1c89b109f3a7
Diffstat (limited to 'libs/hwui/JankTracker.cpp')
-rw-r--r-- | libs/hwui/JankTracker.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/JankTracker.cpp b/libs/hwui/JankTracker.cpp index f2d50cd42523..e7ae7675f0b8 100644 --- a/libs/hwui/JankTracker.cpp +++ b/libs/hwui/JankTracker.cpp @@ -18,6 +18,7 @@ #include <errno.h> #include <inttypes.h> +#include <statslog.h> #include <sys/mman.h> #include <algorithm> @@ -181,6 +182,7 @@ void JankTracker::finishFrame(const FrameInfo& frame) { ALOGI("%s", ss.str().c_str()); // Just so we have something that counts up, the value is largely irrelevant ATRACE_INT(ss.str().c_str(), ++sDaveyCount); + android::util::stats_write(android::util::DAVEY_OCCURRED, getuid(), ns2ms(totalDuration)); } } |