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

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

Merge "Isolate statsd_write trace when reporting jank." into rvc-dev am: 0050943c am: 5a614b6f

Change-Id: I7effe459c61a935c7500369f13d442e0d73f987f
parents 71b856ba 5a614b6f
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.