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

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

Merge "Isolate statsd_write trace when reporting jank." into rvc-dev

parents 16596ab1 30843e3b
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1919,9 +1919,12 @@ void SurfaceFlinger::onMessageInvalidate(nsecs_t expectedVSyncTime) NO_THREAD_SA
                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.