src/share/vm/gc_implementation/g1/g1GCPhaseTimes.cpp

changeset 9327
f96fcd9e1e1b
parent 8310
6c57a16d0238
child 9448
73d689add964
child 9478
f3108e56b502
equal deleted inserted replaced
9324:efdbe9b904ad 9327:f96fcd9e1e1b
330 void G1GCPhaseTimes::print_stats(int level, const char* str, double value) { 330 void G1GCPhaseTimes::print_stats(int level, const char* str, double value) {
331 LineBuffer(level).append_and_print_cr("[%s: %.1lf ms]", str, value); 331 LineBuffer(level).append_and_print_cr("[%s: %.1lf ms]", str, value);
332 } 332 }
333 333
334 void G1GCPhaseTimes::print_stats(int level, const char* str, size_t value) { 334 void G1GCPhaseTimes::print_stats(int level, const char* str, size_t value) {
335 LineBuffer(level).append_and_print_cr("[%s: "SIZE_FORMAT"]", str, value); 335 LineBuffer(level).append_and_print_cr("[%s: " SIZE_FORMAT "]", str, value);
336 } 336 }
337 337
338 void G1GCPhaseTimes::print_stats(int level, const char* str, double value, uint workers) { 338 void G1GCPhaseTimes::print_stats(int level, const char* str, double value, uint workers) {
339 LineBuffer(level).append_and_print_cr("[%s: %.1lf ms, GC Workers: %u]", str, value, workers); 339 LineBuffer(level).append_and_print_cr("[%s: %.1lf ms, GC Workers: %u]", str, value, workers);
340 } 340 }
450 LineBuffer buf(phase->_indent_level); 450 LineBuffer buf(phase->_indent_level);
451 buf.append_and_print_cr("[%s: %.1lf]", phase->_title, _phase_times->get_time_ms(phase_id, 0)); 451 buf.append_and_print_cr("[%s: %.1lf]", phase->_title, _phase_times->get_time_ms(phase_id, 0));
452 452
453 if (phase->_thread_work_items != NULL) { 453 if (phase->_thread_work_items != NULL) {
454 LineBuffer buf2(phase->_thread_work_items->_indent_level); 454 LineBuffer buf2(phase->_thread_work_items->_indent_level);
455 buf2.append_and_print_cr("[%s: "SIZE_FORMAT"]", phase->_thread_work_items->_title, _phase_times->sum_thread_work_items(phase_id)); 455 buf2.append_and_print_cr("[%s: " SIZE_FORMAT "]", phase->_thread_work_items->_title, _phase_times->sum_thread_work_items(phase_id));
456 } 456 }
457 } 457 }
458 458
459 void print_time_values(LineBuffer& buf, G1GCPhaseTimes::GCParPhases phase_id, WorkerDataArray<double>* phase) { 459 void print_time_values(LineBuffer& buf, G1GCPhaseTimes::GCParPhases phase_id, WorkerDataArray<double>* phase) {
460 uint active_length = _phase_times->_active_gc_threads; 460 uint active_length = _phase_times->_active_gc_threads;

mercurial