Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/concurrentMarkThread.cpp @ 8109:96c885895d22
8007221: G1: concurrent phase durations do not state the time units ("secs")
Summary: Add timer units to concurrent marking phases where the units were missing.
Reviewed-by: jmasa, ysr
author | johnc |
---|---|
date | Fri, 22 Feb 2013 11:01:01 -0800 |
parents | d275c3dc73e6 |
children | f2110083203d |
comparison
equal
deleted
inserted
replaced
8108:0598674c0056 | 8109:96c885895d22 |
---|---|
115 | 115 |
116 double scan_end = os::elapsedTime(); | 116 double scan_end = os::elapsedTime(); |
117 if (G1Log::fine()) { | 117 if (G1Log::fine()) { |
118 gclog_or_tty->date_stamp(PrintGCDateStamps); | 118 gclog_or_tty->date_stamp(PrintGCDateStamps); |
119 gclog_or_tty->stamp(PrintGCTimeStamps); | 119 gclog_or_tty->stamp(PrintGCTimeStamps); |
120 gclog_or_tty->print_cr("[GC concurrent-root-region-scan-end, %1.7lf]", | 120 gclog_or_tty->print_cr("[GC concurrent-root-region-scan-end, %1.7lf secs]", |
121 scan_end - scan_start); | 121 scan_end - scan_start); |
122 } | 122 } |
123 } | 123 } |
124 | 124 |
125 double mark_start_sec = os::elapsedTime(); | 125 double mark_start_sec = os::elapsedTime(); |
148 } | 148 } |
149 | 149 |
150 if (G1Log::fine()) { | 150 if (G1Log::fine()) { |
151 gclog_or_tty->date_stamp(PrintGCDateStamps); | 151 gclog_or_tty->date_stamp(PrintGCDateStamps); |
152 gclog_or_tty->stamp(PrintGCTimeStamps); | 152 gclog_or_tty->stamp(PrintGCTimeStamps); |
153 gclog_or_tty->print_cr("[GC concurrent-mark-end, %1.7lf sec]", | 153 gclog_or_tty->print_cr("[GC concurrent-mark-end, %1.7lf secs]", |
154 mark_end_sec - mark_start_sec); | 154 mark_end_sec - mark_start_sec); |
155 } | 155 } |
156 | 156 |
157 CMCheckpointRootsFinalClosure final_cl(_cm); | 157 CMCheckpointRootsFinalClosure final_cl(_cm); |
158 sprintf(verbose_str, "GC remark"); | 158 sprintf(verbose_str, "GC remark"); |
232 | 232 |
233 double cleanup_end_sec = os::elapsedTime(); | 233 double cleanup_end_sec = os::elapsedTime(); |
234 if (G1Log::fine()) { | 234 if (G1Log::fine()) { |
235 gclog_or_tty->date_stamp(PrintGCDateStamps); | 235 gclog_or_tty->date_stamp(PrintGCDateStamps); |
236 gclog_or_tty->stamp(PrintGCTimeStamps); | 236 gclog_or_tty->stamp(PrintGCTimeStamps); |
237 gclog_or_tty->print_cr("[GC concurrent-cleanup-end, %1.7lf]", | 237 gclog_or_tty->print_cr("[GC concurrent-cleanup-end, %1.7lf secs]", |
238 cleanup_end_sec - cleanup_start_sec); | 238 cleanup_end_sec - cleanup_start_sec); |
239 } | 239 } |
240 } | 240 } |
241 guarantee(cm()->cleanup_list_is_empty(), | 241 guarantee(cm()->cleanup_list_is_empty(), |
242 "at this point there should be no regions on the cleanup list"); | 242 "at this point there should be no regions on the cleanup list"); |