hook up ancient.slots_considered metric (#32458)
This commit is contained in:
parent
0177a1629c
commit
245cd9631a
|
@ -285,6 +285,9 @@ impl AccountsDb {
|
||||||
tuning: PackedAncientStorageTuning,
|
tuning: PackedAncientStorageTuning,
|
||||||
metrics: &mut ShrinkStatsSub,
|
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);
|
let ancient_slot_infos = self.collect_sort_filter_ancient_slots(sorted_slots, &tuning);
|
||||||
|
|
||||||
if ancient_slot_infos.all_infos.is_empty() {
|
if ancient_slot_infos.all_infos.is_empty() {
|
||||||
|
|
Loading…
Reference in New Issue