Merge "Unify binder txn trace name"
This commit is contained in:
@@ -911,11 +911,15 @@ public class Binder implements IBinder {
|
|||||||
final String transactionName = getTransactionName(transactionCode);
|
final String transactionName = getTransactionName(transactionCode);
|
||||||
final StringBuffer buf = new StringBuffer();
|
final StringBuffer buf = new StringBuffer();
|
||||||
|
|
||||||
|
// Keep trace name consistent with cpp trace name in:
|
||||||
|
// system/tools/aidl/generate_cpp.cpp
|
||||||
|
buf.append("AIDL::java::");
|
||||||
if (transactionName != null) {
|
if (transactionName != null) {
|
||||||
buf.append(mSimpleDescriptor).append(":").append(transactionName);
|
buf.append(mSimpleDescriptor).append("::").append(transactionName);
|
||||||
} else {
|
} else {
|
||||||
buf.append(mSimpleDescriptor).append("#").append(transactionCode);
|
buf.append(mSimpleDescriptor).append("::#").append(transactionCode);
|
||||||
}
|
}
|
||||||
|
buf.append("::server");
|
||||||
|
|
||||||
transactionTraceName = buf.toString();
|
transactionTraceName = buf.toString();
|
||||||
mTransactionTraceNames.setRelease(index, transactionTraceName);
|
mTransactionTraceNames.setRelease(index, transactionTraceName);
|
||||||
|
|||||||
Reference in New Issue
Block a user