566 print_stats(2, "Humongous Reclaim", _cur_fast_reclaim_humongous_time_ms); 567 if (G1Log::finest()) { 568 print_stats(3, "Humongous Reclaimed", _cur_fast_reclaim_humongous_reclaimed); 569 } 570 } 571 print_stats(2, "Free CSet", 572 (_recorded_young_free_cset_time_ms + 573 _recorded_non_young_free_cset_time_ms)); 574 if (G1Log::finest()) { 575 print_stats(3, "Young Free CSet", _recorded_young_free_cset_time_ms); 576 print_stats(3, "Non-Young Free CSet", _recorded_non_young_free_cset_time_ms); 577 } 578 if (_cur_verify_after_time_ms > 0.0) { 579 print_stats(2, "Verify After", _cur_verify_after_time_ms); 580 } 581 } 582 583 G1GCParPhaseTimesTracker::G1GCParPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1GCPhaseTimes::GCParPhases phase, uint worker_id) : 584 _phase_times(phase_times), _phase(phase), _worker_id(worker_id) { 585 if (_phase_times != NULL) { 586 _start_time = os::elapsedTime(); 587 } 588 } 589 590 G1GCParPhaseTimesTracker::~G1GCParPhaseTimesTracker() { 591 if (_phase_times != NULL) { 592 _phase_times->record_time_secs(_phase, _worker_id, os::elapsedTime() - _start_time); 593 } 594 } 595 | 566 print_stats(2, "Humongous Reclaim", _cur_fast_reclaim_humongous_time_ms); 567 if (G1Log::finest()) { 568 print_stats(3, "Humongous Reclaimed", _cur_fast_reclaim_humongous_reclaimed); 569 } 570 } 571 print_stats(2, "Free CSet", 572 (_recorded_young_free_cset_time_ms + 573 _recorded_non_young_free_cset_time_ms)); 574 if (G1Log::finest()) { 575 print_stats(3, "Young Free CSet", _recorded_young_free_cset_time_ms); 576 print_stats(3, "Non-Young Free CSet", _recorded_non_young_free_cset_time_ms); 577 } 578 if (_cur_verify_after_time_ms > 0.0) { 579 print_stats(2, "Verify After", _cur_verify_after_time_ms); 580 } 581 } 582 583 G1GCParPhaseTimesTracker::G1GCParPhaseTimesTracker(G1GCPhaseTimes* phase_times, G1GCPhaseTimes::GCParPhases phase, uint worker_id) : 584 _phase_times(phase_times), _phase(phase), _worker_id(worker_id) { 585 if (_phase_times != NULL) { 586 _start_time = Ticks::now(); 587 } 588 } 589 590 G1GCParPhaseTimesTracker::~G1GCParPhaseTimesTracker() { 591 if (_phase_times != NULL) { 592 _phase_times->record_time_secs(_phase, _worker_id, (Ticks::now() - _start_time).seconds()); 593 } 594 } |