mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 20:44:41 +02:00
8012455: Missing time and date stamps for PrintGCApplicationConcurrentTime and PrintGCApplicationStoppedTime
Also reviewed by: kirk@kodewerk.com, brandon@twitter.com Reviewed-by: tschatzl, stefank, johnc
This commit is contained in:
parent
d61a4656e4
commit
687b6a8d44
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue