Adds mark_time and sort_time to HashStats total_time (#32370)

This commit is contained in:
Brooks 2023-07-05 12:26:31 -04:00 committed by GitHub
parent 5feebd2dc8
commit c80981070c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -190,7 +190,10 @@ impl HashStats {
} }
pub fn log(&mut self) { pub fn log(&mut self) {
let total_time_us = self.scan_time_total_us // NOTE: Purposely do *not* include `sort_time_total_us` in `total_time_us`, since it is
// overlapping parallel scans, which is not the wallclock time.
let total_time_us = self.mark_time_us
+ self.scan_time_total_us
+ self.zeros_time_total_us + self.zeros_time_total_us
+ self.hash_time_total_us + self.hash_time_total_us
+ self.collect_snapshots_us + self.collect_snapshots_us