diff --git a/accounts-db/src/accounts_db.rs b/accounts-db/src/accounts_db.rs index 162ce25cede85e..7b906dae006150 100644 --- a/accounts-db/src/accounts_db.rs +++ b/accounts-db/src/accounts_db.rs @@ -4598,7 +4598,6 @@ impl AccountsDb { let mut total_alive_bytes: u64 = 0; let mut candidates_count: usize = 0; let mut total_bytes: u64 = 0; - let mut total_candidate_stores: usize = 0; for slot in shrink_slots { let Some(store) = self.storage.get_slot_storage_entry(*slot) else { continue; @@ -4613,7 +4612,6 @@ impl AccountsDb { alive_ratio, store: store.clone(), }); - total_candidate_stores += 1; } store_usage.sort_by(|a, b| { a.alive_ratio @@ -4650,18 +4648,18 @@ impl AccountsDb { shrink_slots.insert(usage.slot, Arc::clone(store)); } } + measure.stop(); - inc_new_counter_debug!( - "shrink_select_top_sparse_storage_entries-ms", - measure.as_ms() as usize - ); - inc_new_counter_debug!( - "shrink_select_top_sparse_storage_entries-seeds", - candidates_count - ); - inc_new_counter_debug!( - "shrink_total_preliminary_candidate_stores", - total_candidate_stores + datapoint_info!( + "shrink_select", + ("select_time-ms", measure.as_ms(), i64), + ("candidates_count", candidates_count, i64), + ("selected_count", shrink_slots.len(), i64), + ( + "deferred_to_next_round_count", + shrink_slots_next_batch.len(), + i64 + ) ); (shrink_slots, shrink_slots_next_batch)