8012455: Missing time and date stamps for PrintGCApplicationConcurrentTime and PrintGCApplicationStoppedTime
authorbrutisso
Thu, 18 Apr 2013 06:50:35 +0200
changeset 16998 d61c4c63f619
parent 16997 d5dfdf746abd
child 16999 223258dbde0a
child 17101 3a82a58d9aa9
child 17102 fd0261ab7079
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
hotspot/src/share/vm/services/runtimeService.cpp
--- a/hotspot/src/share/vm/services/runtimeService.cpp	Wed Apr 17 10:57:02 2013 -0700
+++ b/hotspot/src/share/vm/services/runtimeService.cpp	Thu Apr 18 06:50:35 2013 +0200
@@ -120,6 +120,8 @@
 
   // 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 @@
   // 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());