From 00b905600481123bf468cefe3c255be2f52a8c15 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Fri, 15 Oct 2021 10:41:05 -0500 Subject: [PATCH] clean metric: total_us (#20707) --- runtime/src/accounts_db.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index c717950c08..e95572a2c6 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -1984,6 +1984,7 @@ impl AccountsDb { is_startup: bool, last_full_snapshot_slot: Option, ) { + let mut measure_all = Measure::start("clean_accounts"); let max_clean_root = self.max_clean_root(max_clean_root); // hold a lock to prevent slot shrinking from running because it might modify some rooted @@ -2193,10 +2194,12 @@ impl AccountsDb { ); reclaims_time.stop(); + measure_all.stop(); self.clean_accounts_stats.report(); datapoint_info!( "clean_accounts", + ("total_us", measure_all.as_us(), i64), ( "collect_delta_keys_us", key_timings.collect_delta_keys_us,