Skip to content

Commit

Permalink
t0 is in counts_ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi authored and pull[bot] committed Feb 23, 2024
1 parent 8c9e12b commit 8332e45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8332e45

Please sign in to comment.