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

Commit d8b7c097 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

Change-Id: I943ae1d011fc8f849532ec276fbb5db453711f2b
parents 4380544c b79738ea
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -1943,14 +1943,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.