提交 f96bcd3a authored 作者: Thomas Mueller's avatar Thomas Mueller

The profiler didn't use the platform line separator.

上级 23d1ac39
...@@ -10,6 +10,7 @@ import java.lang.instrument.Instrumentation; ...@@ -10,6 +10,7 @@ import java.lang.instrument.Instrumentation;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import java.util.Map; import java.util.Map;
import org.h2.constant.SysProperties;
import org.h2.engine.Constants; import org.h2.engine.Constants;
/** /**
...@@ -145,7 +146,7 @@ public class Profiler implements Runnable { ...@@ -145,7 +146,7 @@ public class Profiler implements Runnable {
} }
if (!ignoreThis && !el.equals(last)) { if (!ignoreThis && !el.equals(last)) {
last = el; last = el;
buff.append("at ").append(el).append('\n'); buff.append("at ").append(el).append(SysProperties.LINE_SEPARATOR);
j++; j++;
} }
} }
...@@ -186,7 +187,7 @@ public class Profiler implements Runnable { ...@@ -186,7 +187,7 @@ public class Profiler implements Runnable {
stopCollecting(); stopCollecting();
StringBuilder buff = new StringBuilder(); StringBuilder buff = new StringBuilder();
buff.append("Profiler: top ").append(count).append(" stack trace(s) of ").append(time). buff.append("Profiler: top ").append(count).append(" stack trace(s) of ").append(time).
append(" ms [build-").append(Constants.BUILD_ID).append("]:\n"); append(" ms [build-").append(Constants.BUILD_ID).append("]:").append(SysProperties.LINE_SEPARATOR);
if (counts.size() == 0) { if (counts.size() == 0) {
buff.append("(none)"); buff.append("(none)");
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论