From ba490ff8f395bc3f3bbe6f2c40c97adede804054 Mon Sep 17 00:00:00 2001 From: Tomas Fiers Date: Fri, 13 Jan 2023 16:58:48 +0100 Subject: [PATCH] docstring for `@time_imports`: explain what is shown (it's not cumulative) (#48248) Co-authored-by: Ian Butterworth (cherry picked from commit eb5f6d62009a5792acb2abe5daac00601da4df31) --- stdlib/InteractiveUtils/src/macros.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdlib/InteractiveUtils/src/macros.jl b/stdlib/InteractiveUtils/src/macros.jl index 6733ad2b11b44..3a7509f90a43b 100644 --- a/stdlib/InteractiveUtils/src/macros.jl +++ b/stdlib/InteractiveUtils/src/macros.jl @@ -360,6 +360,8 @@ See also: [`code_native`](@ref), [`@code_llvm`](@ref), [`@code_typed`](@ref) and A macro to execute an expression and produce a report of any time spent importing packages and their dependencies. Any compilation time will be reported as a percentage, and how much of which was recompilation, if any. +One line is printed per package or package extension. The duration shown is the time to import that package itself, not including the time to load any of its dependencies. + On Julia 1.9+ [package extensions](@ref man-extensions) will show as Parent → Extension. !!! note