mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-09 06:28:49 +00:00
8156022: Add prediction for cost_per_byte_ms to G1Analytics
Reviewed-by: sjohanss, mgerdin
This commit is contained in:
parent
baff09847c
commit
fdc03a7cd8
@ -284,6 +284,10 @@ double G1Analytics::predict_object_copy_time_ms(size_t bytes_to_copy, bool durin
|
||||
}
|
||||
}
|
||||
|
||||
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::update_recent_gc_times(double end_time_sec,
|
||||
void G1Analytics::report_concurrent_mark_cleanup_times_ms(double ms) {
|
||||
_concurrent_mark_cleanup_times_ms->add(ms);
|
||||
}
|
||||
|
||||
|
||||
@ -149,6 +149,8 @@ public:
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user