diff --git a/src/share/vm/services/runtimeService.cpp b/src/share/vm/services/runtimeService.cpp index 49997dfc5b37044e6ff18bc3883395567fc13a91..fc2fdf1f6c098eb070ac02c496a08a4e53d221d7 100644 --- a/src/share/vm/services/runtimeService.cpp +++ b/src/share/vm/services/runtimeService.cpp @@ -120,6 +120,8 @@ void RuntimeService::record_safepoint_begin() { // Print the time interval in which the app was executing if (PrintGCApplicationConcurrentTime) { + gclog_or_tty->date_stamp(PrintGCDateStamps); + gclog_or_tty->stamp(PrintGCTimeStamps); gclog_or_tty->print_cr("Application time: %3.7f seconds", last_application_time_sec()); } @@ -150,6 +152,8 @@ void RuntimeService::record_safepoint_end() { // Print the time interval for which the app was stopped // during the current safepoint operation. if (PrintGCApplicationStoppedTime) { + 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());