Merge "Enabling app tracing for Launcher" into udc-qpr-dev

This commit is contained in:
Sunny Goyal
2023-06-03 01:05:19 +00:00
committed by Android (Google) Code Review
@@ -19,6 +19,8 @@ import android.annotation.TargetApi;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Looper;
import android.os.Trace;
import android.os.UserManager;
import android.util.Log;
import android.view.ThreadedRenderer;
@@ -60,5 +62,9 @@ public class QuickstepProcessInitializer extends MainProcessInitializer {
// Elevate GPU priority for Quickstep and Remote animations.
ThreadedRenderer.setContextPriority(
ThreadedRenderer.EGL_CONTEXT_PRIORITY_HIGH_IMG);
// Enable Looper trace points.
// This allows us to see Handler callbacks on traces.
Looper.getMainLooper().setTraceTag(Trace.TRACE_TAG_APP);
}
}