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

Commit 13eb69a0 authored by Pablo Gamito's avatar Pablo Gamito
Browse files

Trace WM protolog alongside WM trace

We removed this in ag/26215014. Adding it back until we flip the perfetto protolog flag fully.

Bug: 328035057

Test: atest BugreportManagerTestCases:BugreportManagerTest
Change-Id: I3cf5443567ffc2be433faea36d73d3b4ea8a1f68
parent 6843dcaa
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -109,6 +109,9 @@ class WindowTracing {
            return;
            return;
        }
        }
        synchronized (mEnabledLock) {
        synchronized (mEnabledLock) {
            if (!android.tracing.Flags.perfettoProtologTracing()) {
                ((LegacyProtoLogImpl) ProtoLog.getSingleInstance()).startProtoLog(pw);
            }
            logAndPrintln(pw, "Start tracing to " + mTraceFile + ".");
            logAndPrintln(pw, "Start tracing to " + mTraceFile + ".");
            mBuffer.resetBuffer();
            mBuffer.resetBuffer();
            mEnabled = mEnabledLockFree = true;
            mEnabled = mEnabledLockFree = true;
@@ -136,6 +139,9 @@ class WindowTracing {
            writeTraceToFileLocked();
            writeTraceToFileLocked();
            logAndPrintln(pw, "Trace written to " + mTraceFile + ".");
            logAndPrintln(pw, "Trace written to " + mTraceFile + ".");
        }
        }
        if (!android.tracing.Flags.perfettoProtologTracing()) {
            ((LegacyProtoLogImpl) ProtoLog.getSingleInstance()).stopProtoLog(pw, true);
        }
    }
    }


    /**
    /**