Fix - Removes redundant `TotalBatchesLen` from `ThreadExecuteTimings::accumulate()` (#34179)
Removes redundant TotalBatchesLen from ThreadExecuteTimings::accumulate().
This commit is contained in:
parent
7010ebf845
commit
c0a4fc870c
|
@ -300,13 +300,6 @@ impl ThreadExecuteTimings {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn accumulate(&mut self, other: &ThreadExecuteTimings) {
|
pub fn accumulate(&mut self, other: &ThreadExecuteTimings) {
|
||||||
self.execute_timings.saturating_add_in_place(
|
|
||||||
ExecuteTimingType::TotalBatchesLen,
|
|
||||||
*other
|
|
||||||
.execute_timings
|
|
||||||
.metrics
|
|
||||||
.index(ExecuteTimingType::TotalBatchesLen),
|
|
||||||
);
|
|
||||||
self.execute_timings.accumulate(&other.execute_timings);
|
self.execute_timings.accumulate(&other.execute_timings);
|
||||||
saturating_add_assign!(self.total_thread_us, other.total_thread_us);
|
saturating_add_assign!(self.total_thread_us, other.total_thread_us);
|
||||||
saturating_add_assign!(
|
saturating_add_assign!(
|
||||||
|
|
Loading…
Reference in New Issue