提交 7aacf725 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 8c586588
......@@ -18,7 +18,7 @@ import org.h2.engine.Constants;
*/
public class Profiler implements Runnable {
private static final int MAX_ELEMENTS = 1000;
private int interval = 10;
private int interval = 50;
private int depth = 16;
private String[] ignoreLines = StringUtils.arraySplit("", ',', true);
private String[] ignoreThreads = StringUtils.arraySplit(
......@@ -48,6 +48,15 @@ public class Profiler implements Runnable {
public void run() {
while (!stop) {
try {
tick();
} catch (Throwable t) {
break;
}
}
}
private void tick() {
if (interval > 0) {
try {
Thread.sleep(interval);
......@@ -98,7 +107,6 @@ public class Profiler implements Runnable {
}
}
}
}
private void increment(String trace) {
total++;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论