Skip to content

Commit

Permalink
Accounts hash calculation metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge committed Aug 7, 2020
1 parent 5530ee4 commit 7615b06
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions runtime/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1592,9 +1592,18 @@ impl AccountsDB {
}

scan.stop();
debug!("{}", scan);

Ok(Self::accumulate_account_hashes(hashes))
let mut accumulate = Measure::start("accumulate");
let accumulated_hash = Self::accumulate_account_hashes(hashes);
accumulate.stop();
datapoint_info!(
"update_accounts_hash",
"accounts_scan",
scan.as_us(),
"hash_accumulate",
accumulate.as_us(),
);
Ok(accumulated_hash)
}

pub fn get_accounts_hash(&self, slot: Slot) -> Hash {
Expand Down

0 comments on commit 7615b06

Please sign in to comment.