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

Commit 4845430f authored by Olivier Gaillard's avatar Olivier Gaillard Committed by Android (Google) Code Review
Browse files

Merge "Use transaction name for binder trace"

parents 647d36f3 53f64506
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -928,7 +928,9 @@ public class Binder implements IBinder {
        final long origWorkSource = ThreadLocalWorkSource.setUid(Binder.getCallingUid());
        final long origWorkSource = ThreadLocalWorkSource.setUid(Binder.getCallingUid());
        try {
        try {
            if (tracingEnabled) {
            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));
            }
            }
            res = onTransact(code, data, reply, flags);
            res = onTransact(code, data, reply, flags);
        } catch (RemoteException|RuntimeException e) {
        } catch (RemoteException|RuntimeException e) {