Skip to content

Commit f30736c

Browse files
author
changelcai
committed
fix stack filter
1 parent 4f66640 commit f30736c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

matrix/matrix-android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryErro
1414
# org.gradle.parallel=true
1515
#Tue Jun 20 10:24:33 CST 2017
1616

17-
VERSION_NAME_PREFIX=0.5.2.40
17+
VERSION_NAME_PREFIX=0.5.2.41
1818
VERSION_NAME_SUFFIX=

matrix/matrix-android/matrix-trace-canary/src/main/java/com/tencent/matrix/trace/util/TraceDataUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,10 @@ public int compare(MethodItem o1, MethodItem o2) {
350350
}
351351
});
352352

353-
MethodItem root = stack.get(0);
354353
if (sortList.isEmpty() && !stack.isEmpty()) {
354+
MethodItem root = stack.get(0);
355355
sortList.add(root);
356-
} else if (sortList.size() > 1 && sortList.peek().methodId == root.methodId) {
356+
} else if (sortList.size() > 1 && sortList.peek().methodId == AppMethodBeat.METHOD_ID_DISPATCH) {
357357
sortList.removeFirst();
358358
}
359359

0 commit comments

Comments
 (0)