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

Commit e3aece09 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Log the davey event."

parents 3109f4a1 ba5bf0d4
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));
    }
}