From ab19543dff27565a580e9948dc352f19b49cef7d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 7 Jun 2021 22:19:52 +0000 Subject: [PATCH] break out hash time in metric (#17721) (#17753) (cherry picked from commit 00ee84af37db20ce9df575e339e8683aad598744) Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com> --- runtime/src/accounts_hash.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/src/accounts_hash.rs b/runtime/src/accounts_hash.rs index cd0c2c8ee2..c6e73b1b1c 100644 --- a/runtime/src/accounts_hash.rs +++ b/runtime/src/accounts_hash.rs @@ -23,6 +23,7 @@ pub struct HashStats { pub scan_time_total_us: u64, pub zeros_time_total_us: u64, pub hash_time_total_us: u64, + pub hash_time_pre_us: u64, pub sort_time_total_us: u64, pub flatten_time_total_us: u64, pub hash_total: usize, @@ -45,6 +46,7 @@ impl HashStats { ("accounts_scan", self.scan_time_total_us, i64), ("eliminate_zeros", self.zeros_time_total_us, i64), ("hash", self.hash_time_total_us, i64), + ("hash_time_pre_us", self.hash_time_pre_us, i64), ("sort", self.sort_time_total_us, i64), ("hash_total", self.hash_total, i64), ("flatten", self.flatten_time_total_us, i64), @@ -780,6 +782,7 @@ impl AccountsHash { .1; hash_time.stop(); stats.hash_time_total_us += hash_time.as_us(); + stats.hash_time_pre_us += hash_time.as_us(); next_pass.reduced_hashes.push(partial_hashes); }