< prev index next >

src/share/vm/gc/g1/g1Analytics.cpp

Print this page




 299 double G1Analytics::predict_non_young_other_time_ms(size_t non_young_num) const {
 300   return non_young_num * get_new_prediction(_non_young_other_cost_per_region_ms_seq);
 301 }
 302 
 303 double G1Analytics::predict_remark_time_ms() const {
 304   return get_new_prediction(_concurrent_mark_remark_times_ms);
 305 }
 306 
 307 double G1Analytics::predict_cleanup_time_ms() const {
 308   return get_new_prediction(_concurrent_mark_cleanup_times_ms);
 309 }
 310 
 311 size_t G1Analytics::predict_rs_lengths() const {
 312   return get_new_size_prediction(_rs_lengths_seq);
 313 }
 314 
 315 size_t G1Analytics::predict_pending_cards() const {
 316   return get_new_size_prediction(_pending_cards_seq);
 317 }
 318 
 319 double G1Analytics::oldest_known_gc_end_time_sec() const {
 320   return _recent_prev_end_times_for_all_gcs_sec->oldest();
 321 }
 322 
 323 double G1Analytics::last_known_gc_end_time_sec() const {
 324   return _recent_prev_end_times_for_all_gcs_sec->last();
 325 }
 326 
 327 void G1Analytics::update_recent_gc_times(double end_time_sec,
 328                                          double pause_time_ms) {
 329   _recent_gc_times_ms->add(pause_time_ms);
 330   _recent_prev_end_times_for_all_gcs_sec->add(end_time_sec);
 331   _prev_collection_pause_end_ms = end_time_sec * 1000.0;
 332 }
 333 
 334 void G1Analytics::report_concurrent_mark_cleanup_times_ms(double ms) {
 335   _concurrent_mark_cleanup_times_ms->add(ms);
 336 }


 299 double G1Analytics::predict_non_young_other_time_ms(size_t non_young_num) const {
 300   return non_young_num * get_new_prediction(_non_young_other_cost_per_region_ms_seq);
 301 }
 302 
 303 double G1Analytics::predict_remark_time_ms() const {
 304   return get_new_prediction(_concurrent_mark_remark_times_ms);
 305 }
 306 
 307 double G1Analytics::predict_cleanup_time_ms() const {
 308   return get_new_prediction(_concurrent_mark_cleanup_times_ms);
 309 }
 310 
 311 size_t G1Analytics::predict_rs_lengths() const {
 312   return get_new_size_prediction(_rs_lengths_seq);
 313 }
 314 
 315 size_t G1Analytics::predict_pending_cards() const {
 316   return get_new_size_prediction(_pending_cards_seq);
 317 }
 318 




 319 double G1Analytics::last_known_gc_end_time_sec() const {
 320   return _recent_prev_end_times_for_all_gcs_sec->oldest();
 321 }
 322 
 323 void G1Analytics::update_recent_gc_times(double end_time_sec,
 324                                          double pause_time_ms) {
 325   _recent_gc_times_ms->add(pause_time_ms);
 326   _recent_prev_end_times_for_all_gcs_sec->add(end_time_sec);
 327   _prev_collection_pause_end_ms = end_time_sec * 1000.0;
 328 }
 329 
 330 void G1Analytics::report_concurrent_mark_cleanup_times_ms(double ms) {
 331   _concurrent_mark_cleanup_times_ms->add(ms);
 332 }
< prev index next >