Add batch stats (#18096)

This commit is contained in:
sakridge
2021-06-22 15:23:26 +02:00
committed by GitHub
parent 3a4176aa3e
commit e808f34b0b
3 changed files with 16 additions and 0 deletions

View File

@ -157,6 +157,8 @@ pub struct ExecuteTimings {
pub load_us: u64,
pub execute_us: u64,
pub store_us: u64,
pub total_batches_len: usize,
pub num_execute_batches: u64,
pub details: ExecuteDetailsTimings,
}
@ -166,6 +168,8 @@ impl ExecuteTimings {
self.load_us += other.load_us;
self.execute_us += other.execute_us;
self.store_us += other.store_us;
self.total_batches_len += other.total_batches_len;
self.num_execute_batches += other.num_execute_batches;
self.details.accumulate(&other.details);
}
}