提交 d78a75d9 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Print memory usage after PageStore tests

上级 c144b79f
...@@ -45,6 +45,7 @@ import org.h2.test.utils.ProxyCodeGenerator; ...@@ -45,6 +45,7 @@ import org.h2.test.utils.ProxyCodeGenerator;
import org.h2.test.utils.ResultVerifier; import org.h2.test.utils.ResultVerifier;
import org.h2.test.utils.SelfDestructor; import org.h2.test.utils.SelfDestructor;
import org.h2.tools.DeleteDbFiles; import org.h2.tools.DeleteDbFiles;
import org.h2.util.Utils;
/** /**
* The base class for all tests. * The base class for all tests.
...@@ -140,7 +141,14 @@ public abstract class TestBase { ...@@ -140,7 +141,14 @@ public abstract class TestBase {
init(conf); init(conf);
start = System.nanoTime(); start = System.nanoTime();
test(); test();
if (!config.mvStore) {
/*
* This code is here to debug memory issues with PageStore testing on Travis.
*/
println("(" + (Utils.getMemoryUsed() >> 10) + " MiB used after)");
} else {
println(""); println("");
}
} catch (Throwable e) { } catch (Throwable e) {
println("FAIL " + e.toString()); println("FAIL " + e.toString());
logError("FAIL " + e.toString(), e); logError("FAIL " + e.toString(), e);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论