equal
deleted
inserted
replaced
217 TruncatedSeq* _alloc_rate_ms_seq; |
217 TruncatedSeq* _alloc_rate_ms_seq; |
218 double _prev_collection_pause_end_ms; |
218 double _prev_collection_pause_end_ms; |
219 |
219 |
220 TruncatedSeq* _rs_length_diff_seq; |
220 TruncatedSeq* _rs_length_diff_seq; |
221 TruncatedSeq* _cost_per_card_ms_seq; |
221 TruncatedSeq* _cost_per_card_ms_seq; |
|
222 TruncatedSeq* _cost_scan_hcc_seq; |
222 TruncatedSeq* _young_cards_per_entry_ratio_seq; |
223 TruncatedSeq* _young_cards_per_entry_ratio_seq; |
223 TruncatedSeq* _mixed_cards_per_entry_ratio_seq; |
224 TruncatedSeq* _mixed_cards_per_entry_ratio_seq; |
224 TruncatedSeq* _cost_per_entry_ms_seq; |
225 TruncatedSeq* _cost_per_entry_ms_seq; |
225 TruncatedSeq* _mixed_cost_per_entry_ms_seq; |
226 TruncatedSeq* _mixed_cost_per_entry_ms_seq; |
226 TruncatedSeq* _cost_per_byte_ms_seq; |
227 TruncatedSeq* _cost_per_byte_ms_seq; |
322 |
323 |
323 double predict_cost_per_card_ms() const { |
324 double predict_cost_per_card_ms() const { |
324 return get_new_prediction(_cost_per_card_ms_seq); |
325 return get_new_prediction(_cost_per_card_ms_seq); |
325 } |
326 } |
326 |
327 |
|
328 double predict_scan_hcc_ms() const { |
|
329 return get_new_prediction(_cost_scan_hcc_seq); |
|
330 } |
|
331 |
327 double predict_rs_update_time_ms(size_t pending_cards) const { |
332 double predict_rs_update_time_ms(size_t pending_cards) const { |
328 return (double) pending_cards * predict_cost_per_card_ms(); |
333 return (double) pending_cards * predict_cost_per_card_ms() + predict_scan_hcc_ms(); |
329 } |
334 } |
330 |
335 |
331 double predict_young_cards_per_entry_ratio() const { |
336 double predict_young_cards_per_entry_ratio() const { |
332 return get_new_prediction(_young_cards_per_entry_ratio_seq); |
337 return get_new_prediction(_young_cards_per_entry_ratio_seq); |
333 } |
338 } |