Skip to content

Commit f7d3e8b

Browse files
start to expand docs
1 parent 83b4487 commit f7d3e8b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

base/timing.jl

+6-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ A macro to execute an expression, printing the time it took to execute, the numb
293293
allocations, and the total number of bytes its execution caused to be allocated, before
294294
returning the value of the expression. Any time spent garbage collecting (gc), compiling
295295
new code, or recompiling invalidated code is shown as a percentage. Any lock conflicts
296-
where a [`ReentrantLock`](@ref) had to wait are shown as a count.
296+
where a [`ReentrantLock`](@ref) had to wait are shown as a count. If the time spent on
297+
scheduling tasks (not including sleeping/waiting) is more than 10% of the total time it
298+
is also shown as a percentage.
297299
298300
Optionally provide a description string to print before the time report.
299301
@@ -317,6 +319,9 @@ See also [`@showtime`](@ref), [`@timev`](@ref), [`@timed`](@ref), [`@elapsed`](@
317319
!!! compat "Julia 1.11"
318320
The reporting of any lock conflicts was added in Julia 1.11.
319321
322+
!!! compat "Julia 1.12"
323+
The reporting of excessive scheduling time was added in Julia 1.12.
324+
320325
```julia-repl
321326
julia> x = rand(10,10);
322327

0 commit comments

Comments
 (0)