From 687b6a8d440448a4f69a8ecc96d407e3d0de3cc6 Mon Sep 17 00:00:00 2001 From: Bengt Rutisson Date: Thu, 18 Apr 2013 06:50:35 +0200 Subject: [PATCH] 8012455: Missing time and date stamps for PrintGCApplicationConcurrentTime and PrintGCApplicationStoppedTime Also reviewed by: kirk@kodewerk.com, brandon@twitter.com Reviewed-by: tschatzl, stefank, johnc --- hotspot/src/share/vm/services/runtimeService.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hotspot/src/share/vm/services/runtimeService.cpp b/hotspot/src/share/vm/services/runtimeService.cpp index 49997dfc5b3..fc2fdf1f6c0 100644 --- a/hotspot/src/share/vm/services/runtimeService.cpp +++ b/hotspot/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());