We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f249791 commit 8ea0531Copy full SHA for 8ea0531
base/timing.jl
@@ -634,7 +634,7 @@ macro timed(ex)
634
)
635
local diff = GC_Diff(gc_num(), stats)
636
local sched_times = Int[]
637
- for i in 1:Threads.maxthreadid()
+ for i in 1:length(task_times_per_thread[])
638
# filter out zeros in task timers which can only happen if nothing was scheduled
639
if task_times_per_thread[][i] != 0
640
# subtract task and sleep times from global elapsed time to get scheduling time per thread
0 commit comments