diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c index a8f3492e6..c10ccb70c 100644 --- a/os/rt/src/chthreads.c +++ b/os/rt/src/chthreads.c @@ -125,6 +125,7 @@ thread_t *_thread_init(thread_t *tp, tprio_t prio) { tp->p_stklimit = (stkalign_t *)(tp + 1); #endif #if CH_DBG_STATISTICS || defined(__DOXYGEN__) + chTMObjectInit(&tp->p_stats); chTMStartMeasurementX(&tp->p_stats); #endif #if defined(CH_CFG_THREAD_INIT_HOOK)