From 00ee84af37db20ce9df575e339e8683aad598744 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Fri, 4 Jun 2021 14:54:06 -0500 Subject: [PATCH] break out hash time in metric (#17721) --- 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 c4cf7380bd..474b2a4e0a 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), @@ -765,6 +767,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); }