8156022: Add prediction for cost_per_byte_ms to G1Analytics
authorehelin
Wed, 04 May 2016 11:29:05 +0200
changeset 38249 51b1102fc197
parent 38248 ccb245cf1fa6
child 38251 6a4902a969d3
child 38252 f601a770c82f
child 38254 05e46b580b4e
8156022: Add prediction for cost_per_byte_ms to G1Analytics Reviewed-by: sjohanss, mgerdin
hotspot/src/share/vm/gc/g1/g1Analytics.cpp
hotspot/src/share/vm/gc/g1/g1Analytics.hpp
--- a/hotspot/src/share/vm/gc/g1/g1Analytics.cpp	Mon May 09 13:55:21 2016 +0200
+++ b/hotspot/src/share/vm/gc/g1/g1Analytics.cpp	Wed May 04 11:29:05 2016 +0200
@@ -284,6 +284,10 @@
   }
 }
 
+double G1Analytics::predict_cost_per_byte_ms() const {
+  return get_new_prediction(_cost_per_byte_ms_seq);
+}
+
 double G1Analytics::predict_constant_other_time_ms() const {
   return get_new_prediction(_constant_other_time_ms_seq);
 }
@@ -326,4 +330,3 @@
 void G1Analytics::report_concurrent_mark_cleanup_times_ms(double ms) {
   _concurrent_mark_cleanup_times_ms->add(ms);
 }
-
--- a/hotspot/src/share/vm/gc/g1/g1Analytics.hpp	Mon May 09 13:55:21 2016 +0200
+++ b/hotspot/src/share/vm/gc/g1/g1Analytics.hpp	Wed May 04 11:29:05 2016 +0200
@@ -149,6 +149,8 @@
   size_t predict_rs_lengths() const;
   size_t predict_pending_cards() const;
 
+  double predict_cost_per_byte_ms() const;
+
   // Add a new GC of the given duration and end time to the record.
   void update_recent_gc_times(double end_time_sec, double elapsed_ms);
   void compute_pause_time_ratio(double interval_ms, double pause_time_ms);