src/hotspot/share/gc/g1/g1GCPhaseTimes.cpp
changeset 58796 7608c17b7463
parent 58777 18c246ad2ff9
child 59198 92c98aa0f801
equal deleted inserted replaced
58795:3df2bf731a87 58796:7608c17b7463
   162   reset();
   162   reset();
   163 }
   163 }
   164 
   164 
   165 void G1GCPhaseTimes::reset() {
   165 void G1GCPhaseTimes::reset() {
   166   _cur_collection_initial_evac_time_ms = 0.0;
   166   _cur_collection_initial_evac_time_ms = 0.0;
   167   _cur_optional_evac_ms = 0.0;
   167   _cur_optional_evac_time_ms = 0.0;
   168   _cur_collection_code_root_fixup_time_ms = 0.0;
   168   _cur_collection_code_root_fixup_time_ms = 0.0;
   169   _cur_strong_code_root_purge_time_ms = 0.0;
   169   _cur_strong_code_root_purge_time_ms = 0.0;
   170   _cur_merge_heap_roots_time_ms = 0.0;
   170   _cur_merge_heap_roots_time_ms = 0.0;
   171   _cur_optional_merge_heap_roots_time_ms = 0.0;
   171   _cur_optional_merge_heap_roots_time_ms = 0.0;
   172   _cur_prepare_merge_heap_roots_time_ms = 0.0;
   172   _cur_prepare_merge_heap_roots_time_ms = 0.0;
   414   }
   414   }
   415   return sum_ms;
   415   return sum_ms;
   416 }
   416 }
   417 
   417 
   418 double G1GCPhaseTimes::print_evacuate_optional_collection_set() const {
   418 double G1GCPhaseTimes::print_evacuate_optional_collection_set() const {
   419   const double sum_ms = _cur_optional_evac_ms + _cur_optional_merge_heap_roots_time_ms;
   419   const double sum_ms = _cur_optional_evac_time_ms + _cur_optional_merge_heap_roots_time_ms;
   420   if (sum_ms > 0) {
   420   if (sum_ms > 0) {
   421     info_time("Merge Optional Heap Roots", _cur_optional_merge_heap_roots_time_ms);
   421     info_time("Merge Optional Heap Roots", _cur_optional_merge_heap_roots_time_ms);
   422 
   422 
   423     debug_time("Prepare Optional Merge Heap Roots", _cur_optional_prepare_merge_heap_roots_time_ms);
   423     debug_time("Prepare Optional Merge Heap Roots", _cur_optional_prepare_merge_heap_roots_time_ms);
   424     debug_phase(_gc_par_phases[OptMergeRS]);
   424     debug_phase(_gc_par_phases[OptMergeRS]);
   425 
   425 
   426     info_time("Evacuate Optional Collection Set", _cur_optional_evac_ms);
   426     info_time("Evacuate Optional Collection Set", _cur_optional_evac_time_ms);
   427     debug_phase(_gc_par_phases[OptScanHR]);
   427     debug_phase(_gc_par_phases[OptScanHR]);
   428     debug_phase(_gc_par_phases[OptObjCopy]);
   428     debug_phase(_gc_par_phases[OptObjCopy]);
   429     debug_phase(_gc_par_phases[OptCodeRoots]);
   429     debug_phase(_gc_par_phases[OptCodeRoots]);
   430     debug_phase(_gc_par_phases[OptTermination]);
   430     debug_phase(_gc_par_phases[OptTermination]);
   431   }
   431   }