changeset 11707:8e0fe2ce0d9b

8156022: Add prediction for cost_per_byte_ms to G1Analytics Reviewed-by: sjohanss, mgerdin
author ehelin
date Wed, 04 May 2016 11:29:05 +0200
parents e0fb424caaf7
children 05e1391bdac7 f86a34e67a05 d590007cce26
files src/share/vm/gc/g1/g1Analytics.cpp src/share/vm/gc/g1/g1Analytics.hpp
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc/g1/g1Analytics.cpp	Mon May 09 13:55:21 2016 +0200
+++ b/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/src/share/vm/gc/g1/g1Analytics.hpp	Mon May 09 13:55:21 2016 +0200
+++ b/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);