- Encapsulate QoS Service metrics reporting within QosServioce, so client (#21191)

code (eg banking_stage) doesn't need to worry about it.
- Remove dead cost_* stats from banking_stage, clean up call path.
This commit is contained in:
Tao Zhu
2021-11-18 15:35:30 -06:00
committed by GitHub
parent a272e19f8d
commit 0ca255220e
3 changed files with 197 additions and 103 deletions

View File

@ -8,6 +8,7 @@ use log::*;
use rand::{thread_rng, Rng};
use rayon::prelude::*;
use solana_core::banking_stage::{BankingStage, BankingStageStats};
use solana_core::qos_service::QosService;
use solana_entry::entry::{next_hash, Entry};
use solana_gossip::cluster_info::ClusterInfo;
use solana_gossip::cluster_info::Node;
@ -93,7 +94,7 @@ fn bench_consume_buffered(bencher: &mut Bencher) {
None::<Box<dyn Fn()>>,
&BankingStageStats::default(),
&recorder,
&Arc::new(RwLock::new(CostModel::default())),
&Arc::new(QosService::new(Arc::new(RwLock::new(CostModel::default())))),
);
});