Skip to content

Commit

Permalink
Add timing when PRECOMPILE_TRACE_COMPILE is set (JuliaLang#57251)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany committed Feb 4, 2025
1 parent 1fff8cc commit 281e351
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,11 @@ function create_expr_cache(pkg::PkgId, input::String, output::String, output_o::

deps_eltype = sprint(show, eltype(concrete_deps); context = :module=>nothing)
deps = deps_eltype * "[" * join(deps_strs, ",") * "]"
trace = isassigned(PRECOMPILE_TRACE_COMPILE) ? `--trace-compile=$(PRECOMPILE_TRACE_COMPILE[])` : ``
trace = if isassigned(PRECOMPILE_TRACE_COMPILE)
`--trace-compile=$(PRECOMPILE_TRACE_COMPILE[]) --trace-compile-timing`
else
``
end
io = open(pipeline(addenv(`$(julia_cmd(;cpu_target)::Cmd) $(opts)
--startup-file=no --history-file=no --warn-overwrite=yes
--color=$(have_color === nothing ? "auto" : have_color ? "yes" : "no")
Expand Down

0 comments on commit 281e351

Please sign in to comment.