提交 7a272c16 编写于 作者: B brutisso

8012455: Missing time and date stamps for PrintGCApplicationConcurrentTime and...

8012455: Missing time and date stamps for PrintGCApplicationConcurrentTime and PrintGCApplicationStoppedTime
Summary: also reviewed by: kirk@kodewerk.com, brandon@twitter.com
Reviewed-by: tschatzl, stefank, johnc
上级 75c54ddf
...@@ -120,6 +120,8 @@ void RuntimeService::record_safepoint_begin() { ...@@ -120,6 +120,8 @@ void RuntimeService::record_safepoint_begin() {
// Print the time interval in which the app was executing // Print the time interval in which the app was executing
if (PrintGCApplicationConcurrentTime) { if (PrintGCApplicationConcurrentTime) {
gclog_or_tty->date_stamp(PrintGCDateStamps);
gclog_or_tty->stamp(PrintGCTimeStamps);
gclog_or_tty->print_cr("Application time: %3.7f seconds", gclog_or_tty->print_cr("Application time: %3.7f seconds",
last_application_time_sec()); last_application_time_sec());
} }
...@@ -150,6 +152,8 @@ void RuntimeService::record_safepoint_end() { ...@@ -150,6 +152,8 @@ void RuntimeService::record_safepoint_end() {
// Print the time interval for which the app was stopped // Print the time interval for which the app was stopped
// during the current safepoint operation. // during the current safepoint operation.
if (PrintGCApplicationStoppedTime) { if (PrintGCApplicationStoppedTime) {
gclog_or_tty->date_stamp(PrintGCDateStamps);
gclog_or_tty->stamp(PrintGCTimeStamps);
gclog_or_tty->print_cr("Total time for which application threads " gclog_or_tty->print_cr("Total time for which application threads "
"were stopped: %3.7f seconds", "were stopped: %3.7f seconds",
last_safepoint_time_sec()); last_safepoint_time_sec());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册