Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
89225438
提交
89225438
authored
10月 23, 2012
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Formatting, documentation.
上级
ebbc5658
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
37 行增加
和
3 行删除
+37
-3
Profiler.java
h2/src/main/org/h2/util/Profiler.java
+2
-2
ObjectType.java
h2/src/test/org/h2/test/store/ObjectType.java
+19
-0
TestMVStore.java
h2/src/test/org/h2/test/store/TestMVStore.java
+1
-1
package.html
h2/src/tools/org/h2/dev/store/cache/package.html
+15
-0
没有找到文件。
h2/src/main/org/h2/util/Profiler.java
浏览文件 @
89225438
...
@@ -103,7 +103,7 @@ public class Profiler implements Runnable {
...
@@ -103,7 +103,7 @@ public class Profiler implements Runnable {
new
Profiler
().
run
(
args
);
new
Profiler
().
run
(
args
);
}
}
void
run
(
String
...
args
)
{
private
void
run
(
String
...
args
)
{
if
(
args
.
length
==
0
)
{
if
(
args
.
length
==
0
)
{
System
.
out
.
println
(
"Show profiling data"
);
System
.
out
.
println
(
"Show profiling data"
);
System
.
out
.
println
(
"Usage: "
+
getClass
().
getName
()
+
" <pid>"
);
System
.
out
.
println
(
"Usage: "
+
getClass
().
getName
()
+
" <pid>"
);
...
@@ -367,7 +367,7 @@ public class Profiler implements Runnable {
...
@@ -367,7 +367,7 @@ public class Profiler implements Runnable {
return
getTopTraces
(
count
);
return
getTopTraces
(
count
);
}
}
p
ublic
String
getTopTraces
(
int
count
)
{
p
rivate
String
getTopTraces
(
int
count
)
{
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:"
).
append
(
LINE_SEPARATOR
);
append
(
" ms:"
).
append
(
LINE_SEPARATOR
);
...
...
h2/src/test/org/h2/test/store/ObjectType.java
浏览文件 @
89225438
...
@@ -243,6 +243,12 @@ public class ObjectType implements DataType {
...
@@ -243,6 +243,12 @@ public class ObjectType implements DataType {
return
TYPE_SERIALIZED_OBJECT
;
return
TYPE_SERIALIZED_OBJECT
;
}
}
/**
* Switch the last remembered type to match the type of the given object.
*
* @param obj the object
* @return the auto-detected type used
*/
AutoDetectDataType
switchType
(
Object
obj
)
{
AutoDetectDataType
switchType
(
Object
obj
)
{
int
typeId
=
getTypeId
(
obj
);
int
typeId
=
getTypeId
(
obj
);
AutoDetectDataType
l
=
last
;
AutoDetectDataType
l
=
last
;
...
@@ -362,10 +368,23 @@ public class ObjectType implements DataType {
...
@@ -362,10 +368,23 @@ public class ObjectType implements DataType {
throw
new
RuntimeException
();
throw
new
RuntimeException
();
}
}
/**
* Get the type for the given object.
*
* @param o the object
* @return the type
*/
AutoDetectDataType
getType
(
Object
o
)
{
AutoDetectDataType
getType
(
Object
o
)
{
return
base
.
switchType
(
o
);
return
base
.
switchType
(
o
);
}
}
/**
* Read an object from the buffer.
*
* @param buff the buffer
* @param tag the first byte of the object (usually the type)
* @return the read object
*/
abstract
Object
read
(
ByteBuffer
buff
,
int
tag
);
abstract
Object
read
(
ByteBuffer
buff
,
int
tag
);
@Override
@Override
...
...
h2/src/test/org/h2/test/store/TestMVStore.java
浏览文件 @
89225438
h2/src/tools/org/h2/dev/store/cache/package.html
0 → 100644
浏览文件 @
89225438
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head><meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/><title>
Javadoc package documentation
</title></head><body
style=
"font: 9pt/130% Tahoma, Arial, Helvetica, sans-serif; font-weight: normal;"
><p>
Classes related to caching.
</p></body></html>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论