remove unused metrics (#31377)
This commit is contained in:
parent
7e2b1a885f
commit
45558f6efe
|
@ -6923,7 +6923,6 @@ impl AccountsDb {
|
||||||
// We'll also accumulate the lamports within each chunk and fewer chunks results in less contention to accumulate the sum.
|
// We'll also accumulate the lamports within each chunk and fewer chunks results in less contention to accumulate the sum.
|
||||||
let chunks = crate::accounts_hash::MERKLE_FANOUT.pow(4);
|
let chunks = crate::accounts_hash::MERKLE_FANOUT.pow(4);
|
||||||
let total_lamports = Mutex::<u64>::new(0);
|
let total_lamports = Mutex::<u64>::new(0);
|
||||||
let stats = HashStats::default();
|
|
||||||
|
|
||||||
let get_hashes = || {
|
let get_hashes = || {
|
||||||
keys.par_chunks(chunks)
|
keys.par_chunks(chunks)
|
||||||
|
@ -7014,16 +7013,6 @@ impl AccountsDb {
|
||||||
("hash", hash_time.as_us(), i64),
|
("hash", hash_time.as_us(), i64),
|
||||||
("hash_total", hash_total, i64),
|
("hash_total", hash_total, i64),
|
||||||
("collect", collect.as_us(), i64),
|
("collect", collect.as_us(), i64),
|
||||||
(
|
|
||||||
"rehashed_rewrites",
|
|
||||||
stats.rehash_required.load(Ordering::Relaxed),
|
|
||||||
i64
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"rehashed_rewrites_unnecessary",
|
|
||||||
stats.rehash_unnecessary.load(Ordering::Relaxed),
|
|
||||||
i64
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
self.assert_safe_squashing_accounts_hash(max_slot, config.epoch_schedule);
|
self.assert_safe_squashing_accounts_hash(max_slot, config.epoch_schedule);
|
||||||
|
|
||||||
|
|
|
@ -134,14 +134,6 @@ pub struct HashStats {
|
||||||
pub min_bin_size: usize,
|
pub min_bin_size: usize,
|
||||||
pub max_bin_size: usize,
|
pub max_bin_size: usize,
|
||||||
pub storage_size_quartiles: StorageSizeQuartileStats,
|
pub storage_size_quartiles: StorageSizeQuartileStats,
|
||||||
/// time spent hashing during rehash calls
|
|
||||||
pub rehash_hash_us: AtomicU64,
|
|
||||||
/// time spent determining whether to rehash during rehash calls
|
|
||||||
pub rehash_calc_us: AtomicU64,
|
|
||||||
/// # rehashes that took place and were necessary
|
|
||||||
pub rehash_required: AtomicUsize,
|
|
||||||
/// # rehashes that took place and were UNnecessary
|
|
||||||
pub rehash_unnecessary: AtomicUsize,
|
|
||||||
pub oldest_root: Slot,
|
pub oldest_root: Slot,
|
||||||
pub roots_older_than_epoch: AtomicUsize,
|
pub roots_older_than_epoch: AtomicUsize,
|
||||||
pub accounts_in_roots_older_than_epoch: AtomicUsize,
|
pub accounts_in_roots_older_than_epoch: AtomicUsize,
|
||||||
|
@ -241,26 +233,6 @@ impl HashStats {
|
||||||
i64
|
i64
|
||||||
),
|
),
|
||||||
("total_us", total_time_us as i64, i64),
|
("total_us", total_time_us as i64, i64),
|
||||||
(
|
|
||||||
"rehashed_rewrites",
|
|
||||||
self.rehash_required.load(Ordering::Relaxed) as i64,
|
|
||||||
i64
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"rehash_hash_us",
|
|
||||||
self.rehash_hash_us.load(Ordering::Relaxed) as i64,
|
|
||||||
i64
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"rehash_calc_us",
|
|
||||||
self.rehash_calc_us.load(Ordering::Relaxed) as i64,
|
|
||||||
i64
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"rehashed_rewrites_unnecessary",
|
|
||||||
self.rehash_unnecessary.load(Ordering::Relaxed) as i64,
|
|
||||||
i64
|
|
||||||
),
|
|
||||||
(
|
(
|
||||||
"roots_older_than_epoch",
|
"roots_older_than_epoch",
|
||||||
self.roots_older_than_epoch.load(Ordering::Relaxed) as i64,
|
self.roots_older_than_epoch.load(Ordering::Relaxed) as i64,
|
||||||
|
|
Loading…
Reference in New Issue