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

Commit 53f64506 authored by Olivier Gaillard's avatar Olivier Gaillard
Browse files

Use transaction name for binder trace

Test: manual
Change-Id: I96e0aa1180ea2f94aee155a26ae6ef4ef29d768b
parent 22f182d1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -771,7 +771,9 @@ public class Binder implements IBinder {
        final boolean tracingEnabled = Binder.isTracingEnabled();
        try {
            if (tracingEnabled) {
                Trace.traceBegin(Trace.TRACE_TAG_ALWAYS, getClass().getName() + ":" + code);
                final String transactionName = getTransactionName(code);
                Trace.traceBegin(Trace.TRACE_TAG_ALWAYS, getClass().getName() + ":"
                        + (transactionName != null ? transactionName : code));
            }
            ThreadLocalWorkSourceUid.set(Binder.getCallingUid());
            res = onTransact(code, data, reply, flags);