From cf0f6809096d99149eed58ace623b9724b75386c Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Wed, 14 Jul 2021 14:52:16 -0700 Subject: [PATCH] Enable latency metrics The metrics were disabled in S because the WeakReference bugs could not be fixed in time. Enable them in T, which should allow sufficient time for the other teams to resolve the WeakReference problems. Bug: 169866723 Test: adb shell dumpsys input, watch for latency tracker starting to collect data Change-Id: I67c4028e7cb8b5e26616ab90b8b60fc871bf4407 --- core/java/android/view/ViewRootImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index dbaf32770fbcf..8f4d748de1c13 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -253,11 +253,11 @@ public final class ViewRootImpl implements ViewParent, private static final boolean MT_RENDERER_AVAILABLE = true; /** - * Whether or not to report end-to-end input latency. Disabled temporarily as a + * Whether or not to report end-to-end input latency. Can be disabled temporarily as a * risk mitigation against potential jank caused by acquiring a weak reference - * per frame + * per frame. */ - private static final boolean ENABLE_INPUT_LATENCY_TRACKING = false; + private static final boolean ENABLE_INPUT_LATENCY_TRACKING = true; /** * Set this system property to true to force the view hierarchy to render