break out hash time in metric (#17721)

This commit is contained in:
Jeff Washington (jwash) 2021-06-04 14:54:06 -05:00 committed by GitHub
parent 7bb5f24274
commit 00ee84af37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ pub struct HashStats {
pub scan_time_total_us: u64, pub scan_time_total_us: u64,
pub zeros_time_total_us: u64, pub zeros_time_total_us: u64,
pub hash_time_total_us: u64, pub hash_time_total_us: u64,
pub hash_time_pre_us: u64,
pub sort_time_total_us: u64, pub sort_time_total_us: u64,
pub flatten_time_total_us: u64, pub flatten_time_total_us: u64,
pub hash_total: usize, pub hash_total: usize,
@ -45,6 +46,7 @@ impl HashStats {
("accounts_scan", self.scan_time_total_us, i64), ("accounts_scan", self.scan_time_total_us, i64),
("eliminate_zeros", self.zeros_time_total_us, i64), ("eliminate_zeros", self.zeros_time_total_us, i64),
("hash", self.hash_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), ("sort", self.sort_time_total_us, i64),
("hash_total", self.hash_total, i64), ("hash_total", self.hash_total, i64),
("flatten", self.flatten_time_total_us, i64), ("flatten", self.flatten_time_total_us, i64),
@ -765,6 +767,7 @@ impl AccountsHash {
.1; .1;
hash_time.stop(); hash_time.stop();
stats.hash_time_total_us += hash_time.as_us(); 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); next_pass.reduced_hashes.push(partial_hashes);
} }