[6.2.0][技术优化] 减少记录字符串的长度

This commit is contained in:
renwj
2023-11-21 17:39:48 +08:00
parent 9981ec9699
commit 80f9f30a74

View File

@@ -230,15 +230,13 @@ public class HookInvokerImpl implements IHookInvoker {
builder.append(")");
}
builder.append("#").append(elapsedTime);
Object monitor = this.monitor.get();
if (monitor != null) {
builder.append("#").append(monitor);
builder.append("#").append("monitor->").append(monitor.getClass().getName()).append("@").append(monitor.hashCode());
}
if (holderDesc != null) {
builder.append("#").append(holderDesc);
builder.append("#").append("holder->").append(holderDesc);
}
if (elapsedTime >= dumpStackThreshold && isCanDump) {
builder.append("\n");
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();