Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba5bf0d4 authored by Yangster-mac's avatar Yangster-mac Committed by Yang Lu
Browse files

Log the davey event.

Test: statsd test
Fix: 117528646

Change-Id: Idb7cc37cd18047120adabbc9fbda1c89b109f3a7
parent 96af49eb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -61,6 +61,7 @@ cc_defaults {
    shared_libs: [
        "liblog",
        "libcutils",
        "libstatslog",
        "libutils",
        "libEGL",
        "libGLESv2",
+2 −0
Original line number Diff line number Diff line
@@ -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));
    }
}