提交 12bef3c3 编写于 作者: C ctornqvi

8055012: [TESTBUG] NMTHelper fails to parse NMT output

Summary: Fixed the regular expression to parse the slightly changed output format of the new NMT implementation
Reviewed-by: olagneau, sla
上级 b9fd5a85
...@@ -32,8 +32,8 @@ public class NMTHelper ...@@ -32,8 +32,8 @@ public class NMTHelper
executeDcmd("vmNativeMemory", "baseline"); executeDcmd("vmNativeMemory", "baseline");
} }
// Total: reserved=3484685KB +293KB, committed=266629KB +293KB // Total: reserved=3484685KB +293KB, committed=266629KB +293KB
private static Pattern totalLine = Pattern.compile("^Total: reserved=\\d+KB .*KB, committed=\\d+KB (.*)KB$"); private static Pattern totalLine = Pattern.compile("^Total: reserved=\\d+KB .*KB, committed=\\d+KB (.*)KB$");
public static long committedDiff() throws Exception { public static long committedDiff() throws Exception {
String res = (String) executeDcmd("vmNativeMemory", "detail.diff"); String res = (String) executeDcmd("vmNativeMemory", "detail.diff");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册