Skip to content

Commit

Permalink
Add timing when PRECOMPILE_TRACE_COMPILE is set (#57251)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany authored Feb 4, 2025
1 parent a3e4f0d commit 0c1e800
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3078,7 +3078,10 @@ function create_expr_cache(pkg::PkgId, input::String, output::String, output_o::
cpu_target = nothing
end
push!(opts, "--output-ji", output)
isassigned(PRECOMPILE_TRACE_COMPILE) && push!(opts, "--trace-compile=$(PRECOMPILE_TRACE_COMPILE[])")
if isassigned(PRECOMPILE_TRACE_COMPILE)
push!(opts, "--trace-compile=$(PRECOMPILE_TRACE_COMPILE[])")
push!(opts, "--trace-compile-timing")
end

io = open(pipeline(addenv(`$(julia_cmd(;cpu_target)::Cmd)
$(flags)
Expand Down

0 comments on commit 0c1e800

Please sign in to comment.