提交 5b600a21 authored 作者: Thomas Mueller's avatar Thomas Mueller

The built-in profiling tool now uses a default stack depth of 32 elements and a…

The built-in profiling tool now uses a default stack depth of 32 elements and a default interval of 10 ms.
上级 89d87ece
......@@ -18,7 +18,11 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>For improved performance, LOG=0 and LOG=1 are again supported.
<ul><li>The built-in profiling tool now uses a default stack depth of 32 elements and a default interval of 10 ms.
</li><li>Database files now grow 2 MB at a time instead of 256 KB. This improves performance, specially
when loading a new database.
</li><li>H2 Console: new built-in command @sleep to help profile another session.
</li><li>For improved performance, LOG=0 and LOG=1 are again supported.
LOG=0 means the transaction log is disabled completely (fastest; for loading a database).
LOG=1 means the transaction log is enabled, but FileDescriptor.sync is disabled (if no protection against power failure is required).
LOG=2 is the default (transaction log is enabled, FileDescriptor.sync for each checkpoint).
......
......@@ -17,8 +17,8 @@ import org.h2.engine.Constants;
public class Profiler implements Runnable {
private static final int MAX_ELEMENTS = 1000;
public int interval = 50;
public int depth = 16;
public int interval = 10;
public int depth = 32;
private String[] ignoreLines = StringUtils.arraySplit("", ',', true);
private String[] ignoreThreads = StringUtils.arraySplit(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论