Mercurial > hg > graal-compiler
comparison src/share/vm/services/runtimeService.cpp @ 10103:07a4efc5ed14
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
author | brutisso |
---|---|
date | Thu, 18 Apr 2013 06:50:35 +0200 |
parents | db9981fd3124 |
children | 0db3ba3f6870 |
comparison
equal
deleted
inserted
replaced
10102:f2e682ef3156 | 10103:07a4efc5ed14 |
---|---|
118 HS_PRIVATE_SAFEPOINT_BEGIN(); | 118 HS_PRIVATE_SAFEPOINT_BEGIN(); |
119 #endif /* USDT2 */ | 119 #endif /* USDT2 */ |
120 | 120 |
121 // Print the time interval in which the app was executing | 121 // Print the time interval in which the app was executing |
122 if (PrintGCApplicationConcurrentTime) { | 122 if (PrintGCApplicationConcurrentTime) { |
123 gclog_or_tty->date_stamp(PrintGCDateStamps); | |
124 gclog_or_tty->stamp(PrintGCTimeStamps); | |
123 gclog_or_tty->print_cr("Application time: %3.7f seconds", | 125 gclog_or_tty->print_cr("Application time: %3.7f seconds", |
124 last_application_time_sec()); | 126 last_application_time_sec()); |
125 } | 127 } |
126 | 128 |
127 // update the time stamp to begin recording safepoint time | 129 // update the time stamp to begin recording safepoint time |
148 #endif /* USDT2 */ | 150 #endif /* USDT2 */ |
149 | 151 |
150 // Print the time interval for which the app was stopped | 152 // Print the time interval for which the app was stopped |
151 // during the current safepoint operation. | 153 // during the current safepoint operation. |
152 if (PrintGCApplicationStoppedTime) { | 154 if (PrintGCApplicationStoppedTime) { |
155 gclog_or_tty->date_stamp(PrintGCDateStamps); | |
156 gclog_or_tty->stamp(PrintGCTimeStamps); | |
153 gclog_or_tty->print_cr("Total time for which application threads " | 157 gclog_or_tty->print_cr("Total time for which application threads " |
154 "were stopped: %3.7f seconds", | 158 "were stopped: %3.7f seconds", |
155 last_safepoint_time_sec()); | 159 last_safepoint_time_sec()); |
156 } | 160 } |
157 | 161 |