Skip to content

Commit 74addd3

Browse files
committed
Reset active status for timing zone upon block entry
1 parent 3cadb6c commit 74addd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/timing.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ enum jl_timing_counter_types {
248248
#ifdef USE_TRACY
249249
#define _TRACY_CTX_MEMBER TracyCZoneCtx tracy_ctx; const struct ___tracy_source_location_data *tracy_srcloc;
250250
#define _TRACY_CTOR(block, name) static const struct ___tracy_source_location_data TIMING_CONCAT(__tracy_source_location,__LINE__) = { name, __func__, TracyFile, (uint32_t)__LINE__, 0 }; \
251-
(block)->tracy_srcloc = &TIMING_CONCAT(__tracy_source_location,__LINE__)
251+
(block)->tracy_srcloc = &TIMING_CONCAT(__tracy_source_location,__LINE__); \
252+
(block)->tracy_ctx.active = 0
252253
#define _TRACY_START(block) (block)->tracy_ctx = ___tracy_emit_zone_begin( (block)->tracy_srcloc, 1 );
253254
#define _TRACY_STOP(ctx) TracyCZoneEnd(ctx)
254255
#else

0 commit comments

Comments
 (0)