From 8332e4546357b5b4bd63f7ecc28f53a860ffe18d Mon Sep 17 00:00:00 2001 From: Prem Chintalapudi Date: Sat, 20 May 2023 21:00:18 -0400 Subject: [PATCH] t0 is in counts_ctx --- src/timing.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timing.h b/src/timing.h index 603f9c0a061edb..cbf32cf6435262 100644 --- a/src/timing.h +++ b/src/timing.h @@ -353,13 +353,15 @@ STATIC_INLINE void jl_timing_block_start(jl_timing_block_t *block) { uint64_t t = cycleclock(); (void)t; _COUNTS_START(&block->counts_ctx, t); +#ifdef USE_TIMING_COUNTS + block->counts_ctx.t0 = t; +#endif _ITTAPI_START(block); _TRACY_START(block); jl_timing_block_t **prevp = &jl_current_task->ptls->timing_stack; block->prev = *prevp; block->is_running = 1; - block->t0 = t; if (block->prev) { _COUNTS_STOP(&block->prev->counts_ctx, t); }