Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
940c71e7
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
940c71e7
编写于
11月 06, 2014
作者:
D
dbuck
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
48e4f105
fa27980b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
2 deletion
+10
-2
src/share/vm/services/runtimeService.cpp
src/share/vm/services/runtimeService.cpp
+9
-2
src/share/vm/services/runtimeService.hpp
src/share/vm/services/runtimeService.hpp
+1
-0
未找到文件。
src/share/vm/services/runtimeService.cpp
浏览文件 @
940c71e7
...
...
@@ -46,6 +46,7 @@ PerfCounter* RuntimeService::_application_time_ticks = NULL;
PerfCounter
*
RuntimeService
::
_thread_interrupt_signaled_count
=
NULL
;
PerfCounter
*
RuntimeService
::
_interrupted_before_count
=
NULL
;
PerfCounter
*
RuntimeService
::
_interrupted_during_count
=
NULL
;
double
RuntimeService
::
_last_safepoint_sync_time_sec
=
0.0
;
void
RuntimeService
::
init
()
{
// Make sure the VM version is initialized
...
...
@@ -128,6 +129,7 @@ void RuntimeService::record_safepoint_begin() {
// update the time stamp to begin recording safepoint time
_safepoint_timer
.
update
();
_last_safepoint_sync_time_sec
=
0.0
;
if
(
UsePerfData
)
{
_total_safepoints
->
inc
();
if
(
_app_timer
.
is_updated
())
{
...
...
@@ -140,6 +142,9 @@ void RuntimeService::record_safepoint_synchronized() {
if
(
UsePerfData
)
{
_sync_time_ticks
->
inc
(
_safepoint_timer
.
ticks_since_update
());
}
if
(
PrintGCApplicationStoppedTime
)
{
_last_safepoint_sync_time_sec
=
last_safepoint_time_sec
();
}
}
void
RuntimeService
::
record_safepoint_end
()
{
...
...
@@ -155,8 +160,10 @@ void RuntimeService::record_safepoint_end() {
gclog_or_tty
->
date_stamp
(
PrintGCDateStamps
);
gclog_or_tty
->
stamp
(
PrintGCTimeStamps
);
gclog_or_tty
->
print_cr
(
"Total time for which application threads "
"were stopped: %3.7f seconds"
,
last_safepoint_time_sec
());
"were stopped: %3.7f seconds, "
"Stopping threads took: %3.7f seconds"
,
last_safepoint_time_sec
(),
_last_safepoint_sync_time_sec
);
}
// update the time stamp to begin recording app time
...
...
src/share/vm/services/runtimeService.hpp
浏览文件 @
940c71e7
...
...
@@ -40,6 +40,7 @@ private:
static
TimeStamp
_safepoint_timer
;
static
TimeStamp
_app_timer
;
static
double
_last_safepoint_sync_time_sec
;
public:
static
void
init
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录