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

Commit 3947a31b authored by Lingyu Feng's avatar Lingyu Feng
Browse files

Add trace for DisplayContent#onDisplayInfoChangeApplied()

This helps debug display content mode changes.

Bug: 427378486
Test: manual, record perfetto trace and verify log is collected
Flag: EXEMPT adding trace
Change-Id: Idaa77dc020e9839b752b1767b692f372e27dc9cd
parent 559b2b6a
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2893,7 +2893,15 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
                        () -> {
                            clearDisplayInfoCaches(displayId);
                            if (ENABLE_DISPLAY_CONTENT_MODE_MANAGEMENT.isTrue()) {
                                if (Trace.isTagEnabled(TRACE_TAG_WINDOW_MANAGER)) {
                                    Trace.traceBegin(TRACE_TAG_WINDOW_MANAGER,
                                            "onDisplayInfoChangeApplied, displayId=" + displayId);
                                }
                                try {
                                    displayContent.onDisplayInfoChangeApplied();
                                } finally {
                                    Trace.traceEnd(TRACE_TAG_WINDOW_MANAGER);
                                }
                            }
                        });
            } else {