Add clean metrics (#20410)
This commit is contained in:
committed by
GitHub
parent
2d78f8ad2a
commit
64cf354651
@@ -571,6 +571,8 @@ pub struct AccountsIndexRootsStats {
|
||||
pub roots_range: u64,
|
||||
pub rooted_cleaned_count: usize,
|
||||
pub unrooted_cleaned_count: usize,
|
||||
pub clean_unref_from_storage_us: u64,
|
||||
pub clean_dead_slot_us: u64,
|
||||
}
|
||||
|
||||
pub struct AccountsIndexIterator<'a, T: IndexValue> {
|
||||
@@ -1805,6 +1807,8 @@ impl<T: IndexValue> AccountsIndex<T> {
|
||||
roots_range,
|
||||
rooted_cleaned_count: 0,
|
||||
unrooted_cleaned_count: 0,
|
||||
clean_unref_from_storage_us: 0,
|
||||
clean_dead_slot_us: 0,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user