< prev index next >

src/hotspot/share/gc/g1/g1GCPhaseTimes.hpp

Print this page
rev 52675 : 8213890: Implementation of JEP 344: Abortable Mixed Collections for G1
Reviewed-by:
Contributed-by: erik.helin@oracle.com, stefan.johansson@oracle.com
rev 52676 : imported patch AMGC-impl
rev 52679 : imported patch AMGC-tsch-rev1-log
rev 52680 : imported patch AMGC-tsch-rev2
rev 52681 : [mq]: AMGC-kbar-rev1


 202   double print_evacuate_optional_collection_set() const;
 203   double print_post_evacuate_collection_set() const;
 204   void print_other(double accounted_ms) const;
 205 
 206  public:
 207   G1GCPhaseTimes(STWGCTimer* gc_timer, uint max_gc_threads);
 208   void note_gc_start();
 209   void print();
 210   static const char* phase_name(GCParPhases phase);
 211 
 212   // record the time a phase took in seconds
 213   void record_time_secs(GCParPhases phase, uint worker_i, double secs);
 214 
 215   // add a number of seconds to a phase
 216   void add_time_secs(GCParPhases phase, uint worker_i, double secs);
 217 
 218   void record_or_add_time_secs(GCParPhases phase, uint worker_i, double secs);
 219 
 220   void record_thread_work_item(GCParPhases phase, uint worker_i, size_t count, uint index = 0);
 221 


 222   // return the average time for a phase in milliseconds
 223   double average_time_ms(GCParPhases phase);
 224 
 225   size_t sum_thread_work_items(GCParPhases phase, uint index = 0);
 226 
 227  public:
 228 
 229   void record_prepare_tlab_time_ms(double ms) {
 230     _cur_prepare_tlab_time_ms = ms;
 231   }
 232 
 233   void record_resize_tlab_time_ms(double ms) {
 234     _cur_resize_tlab_time_ms = ms;
 235   }
 236 
 237   void record_derived_pointer_table_update_time(double ms) {
 238     _cur_derived_pointer_table_update_time_ms = ms;
 239   }
 240 
 241   void record_clear_ct_time(double ms) {




 202   double print_evacuate_optional_collection_set() const;
 203   double print_post_evacuate_collection_set() const;
 204   void print_other(double accounted_ms) const;
 205 
 206  public:
 207   G1GCPhaseTimes(STWGCTimer* gc_timer, uint max_gc_threads);
 208   void note_gc_start();
 209   void print();
 210   static const char* phase_name(GCParPhases phase);
 211 
 212   // record the time a phase took in seconds
 213   void record_time_secs(GCParPhases phase, uint worker_i, double secs);
 214 
 215   // add a number of seconds to a phase
 216   void add_time_secs(GCParPhases phase, uint worker_i, double secs);
 217 
 218   void record_or_add_time_secs(GCParPhases phase, uint worker_i, double secs);
 219 
 220   void record_thread_work_item(GCParPhases phase, uint worker_i, size_t count, uint index = 0);
 221 
 222   void record_or_add_thread_work_item(GCParPhases phase, uint worker_i, size_t count, uint index = 0);
 223 
 224   // return the average time for a phase in milliseconds
 225   double average_time_ms(GCParPhases phase);
 226 
 227   size_t sum_thread_work_items(GCParPhases phase, uint index = 0);
 228 
 229  public:
 230 
 231   void record_prepare_tlab_time_ms(double ms) {
 232     _cur_prepare_tlab_time_ms = ms;
 233   }
 234 
 235   void record_resize_tlab_time_ms(double ms) {
 236     _cur_resize_tlab_time_ms = ms;
 237   }
 238 
 239   void record_derived_pointer_table_update_time(double ms) {
 240     _cur_derived_pointer_table_update_time_ms = ms;
 241   }
 242 
 243   void record_clear_ct_time(double ms) {


< prev index next >