From 748684df05750301246bbd65d4b415e7e0601d81 Mon Sep 17 00:00:00 2001 From: Romain Beurdouche Date: Tue, 29 Apr 2025 12:46:28 +0000 Subject: [PATCH] feat(time_meas): Standard deviation & merge `diff_square` was not merged in `merge_meas` so that calculation of the standard deviation was not working with merged timers. --- common/utils/time_meas.h | 1 + 1 file changed, 1 insertion(+) diff --git a/common/utils/time_meas.h b/common/utils/time_meas.h index f7c2810b60..de79a0252d 100644 --- a/common/utils/time_meas.h +++ b/common/utils/time_meas.h @@ -193,6 +193,7 @@ static inline void merge_meas(time_stats_t *dst_ts, const time_stats_t *src_ts) return; dst_ts->trials += src_ts->trials; dst_ts->diff += src_ts->diff; + dst_ts->diff_square += src_ts->diff_square; if (src_ts->max > dst_ts->max) dst_ts->max = src_ts->max; }