hook up ancient.slots_considered metric (#32458)

This commit is contained in:
Jeff Washington (jwash) 2023-07-11 11:51:16 -07:00 committed by GitHub
parent 0177a1629c
commit 245cd9631a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -285,6 +285,9 @@ impl AccountsDb {
tuning: PackedAncientStorageTuning,
metrics: &mut ShrinkStatsSub,
) {
self.shrink_ancient_stats
.slots_considered
.fetch_add(sorted_slots.len() as u64, Ordering::Relaxed);
let ancient_slot_infos = self.collect_sort_filter_ancient_slots(sorted_slots, &tuning);
if ancient_slot_infos.all_infos.is_empty() {