clean metric: total_us (#20707)

This commit is contained in:
Jeff Washington (jwash)
2021-10-15 10:41:05 -05:00
committed by GitHub
parent b80fd7566a
commit 00b9056004

View File

@ -1984,6 +1984,7 @@ impl AccountsDb {
is_startup: bool, is_startup: bool,
last_full_snapshot_slot: Option<Slot>, last_full_snapshot_slot: Option<Slot>,
) { ) {
let mut measure_all = Measure::start("clean_accounts");
let max_clean_root = self.max_clean_root(max_clean_root); 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 // hold a lock to prevent slot shrinking from running because it might modify some rooted
@ -2193,10 +2194,12 @@ impl AccountsDb {
); );
reclaims_time.stop(); reclaims_time.stop();
measure_all.stop();
self.clean_accounts_stats.report(); self.clean_accounts_stats.report();
datapoint_info!( datapoint_info!(
"clean_accounts", "clean_accounts",
("total_us", measure_all.as_us(), i64),
( (
"collect_delta_keys_us", "collect_delta_keys_us",
key_timings.collect_delta_keys_us, key_timings.collect_delta_keys_us,