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

Commit f3193804 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove hot-path logging" into rvc-dev am: b79738ea am: 5949f7a3 am:...

Merge "Remove hot-path logging" into rvc-dev am: b79738ea am: 5949f7a3 am: a60498c9 am: a12a64f9

Change-Id: I916be4633f0372d68a4d952e0e423558e62cc040
parents 2a2fb261 a12a64f9
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -1923,14 +1923,10 @@ void SurfaceFlinger::onMessageInvalidate(nsecs_t expectedVSyncTime) {
            const nsecs_t jankDuration = currentTime - mMissedFrameJankStart;
            if (jankDuration > kMinJankyDuration && jankDuration < kMaxJankyDuration) {
                ATRACE_NAME("Jank detected");
                ALOGD("Detected janky event. Missed frames: %d", mMissedFrameJankCount);
                const int32_t jankyDurationMillis = jankDuration / (1000 * 1000);
                {
                    ATRACE_NAME("Pushing to statsd");
                android::util::stats_write(android::util::DISPLAY_JANK_REPORTED,
                                           jankyDurationMillis, mMissedFrameJankCount);
            }
            }

            // We either reported a jank event or we missed the trace
            // window, so clear counters here.