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

Commit cd5f25b5 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Create flag for enabling layout tracing in SystemUI

Flag: ACONFIG enable_layout_tracing DISABLED
Bug: 315274804
Test: perfetto trace
Change-Id: I8626536a95b9e9febbe3744f53765f61cd6f4859
parent 6ed42ea1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -203,6 +203,13 @@ flag {
   bug: "298186160"
}

flag {
  name: "enable_layout_tracing"
  namespace: "systemui"
  description: "Enables detailed traversal slices during measure and layout in perfetto traces"
  bug: "315274804"
}

flag {
   name: "quick_settings_visual_haptics_longpress"
   namespace: "systemui"
+4 −0
Original line number Diff line number Diff line
@@ -110,6 +110,10 @@ public class SystemUIApplication extends Application implements
        View.setTracedRequestLayoutClassClass(
                SystemProperties.get("persist.debug.trace_request_layout_class", null));

        if (Flags.enableLayoutTracing()) {
            View.setTraceLayoutSteps(true);
        }

        if (Process.myUserHandle().equals(UserHandle.SYSTEM)) {
            IntentFilter bootCompletedFilter = new
                    IntentFilter(Intent.ACTION_LOCKED_BOOT_COMPLETED);