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

Commit 9cf119e2 authored by shane's avatar shane
Browse files

[ARR] Add trace to track View velocity

Add trace to track View velocity

Test: collected a trace and verified locally
Bug: 337253254
Flag: EXEMPT - Add trace only
Change-Id: Ib75164d3411b78959037515bbf54a7c538ae664d
parent 3445aeb8
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);
            }