[6.2.0][技术优化] 优化记录消息实体获取(读写锁)获取逻辑
This commit is contained in:
@@ -131,7 +131,7 @@ public class HookInvokerImpl implements IHookInvoker {
|
||||
builder
|
||||
.append(type)
|
||||
.append("#")
|
||||
.append(caller == null ? "caller is null" : caller.getClass().getSimpleName())
|
||||
.append(caller == null ? "caller is null" : caller.getClass().getName())
|
||||
.append("#")
|
||||
.append(methodName);
|
||||
if (args.length > 0) {
|
||||
@@ -141,7 +141,7 @@ public class HookInvokerImpl implements IHookInvoker {
|
||||
if (o == null) {
|
||||
continue;
|
||||
}
|
||||
builder.append(o.getClass().getSimpleName())
|
||||
builder.append(o.getClass().getName())
|
||||
.append(",");
|
||||
}
|
||||
|
||||
@@ -151,10 +151,11 @@ public class HookInvokerImpl implements IHookInvoker {
|
||||
}
|
||||
|
||||
builder.append("#").append(cost);
|
||||
boolean flag = false;
|
||||
if (extra != null && extra.length() > 0) {
|
||||
builder.append("#");
|
||||
builder.append(extra);
|
||||
extra.setLength(0);
|
||||
flag = true;
|
||||
}
|
||||
// dump堆栈阈值
|
||||
long dumpStackThreshold = 20;
|
||||
@@ -168,6 +169,9 @@ public class HookInvokerImpl implements IHookInvoker {
|
||||
}
|
||||
Log.w("HookHandler", "Junk Detected:" + builder);
|
||||
linkedLog(type, builder.toString());
|
||||
if (flag) {
|
||||
extra.setLength(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user