Add clean metrics (#20410)

This commit is contained in:
Jeff Washington (jwash)
2021-10-04 19:21:45 -04:00
committed by GitHub
parent 2d78f8ad2a
commit 64cf354651
2 changed files with 34 additions and 1 deletions

View File

@@ -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,
})
}