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

Commit 9f37a591 authored by Jian-Syuan (Shane) Wong's avatar Jian-Syuan (Shane) Wong Committed by Android (Google) Code Review
Browse files

Merge "[ARR] Add trace to track View velocity" into main

parents bd3a0666 9cf119e2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -34717,6 +34717,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (mAttachInfo != null && mAttachInfo.mViewVelocityApi) {
            mFrameContentVelocity = Math.abs(pixelsPerSecond);
            if (Trace.isTagEnabled(TRACE_TAG_VIEW)) {
                Trace.instant(TRACE_TAG_VIEW,
                        getClass().getSimpleName()
                            + " - setFrameContentVelocity: " + mFrameContentVelocity);
            }
            if (sToolkitMetricsForFrameRateDecisionFlagValue) {
                Trace.setCounter("Set frame velocity", (long) mFrameContentVelocity);
            }