Skip to content

Commit f2558c4

Browse files
Add timing to precompile trace compile (#54962)
I think this tool is there mainly to see what's taking so long, so timing information is helpful.
1 parent 1fdc6a6 commit f2558c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/loading.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2858,7 +2858,7 @@ function create_expr_cache(pkg::PkgId, input::String, output::String, output_o::
28582858
opts = `-O0 --output-ji $(output) --output-incremental=yes`
28592859
end
28602860

2861-
trace = isassigned(PRECOMPILE_TRACE_COMPILE) ? `--trace-compile=$(PRECOMPILE_TRACE_COMPILE[])` : ``
2861+
trace = isassigned(PRECOMPILE_TRACE_COMPILE) ? `--trace-compile=$(PRECOMPILE_TRACE_COMPILE[]) --trace-compile-timing` : ``
28622862
io = open(pipeline(addenv(`$(julia_cmd(;cpu_target)::Cmd)
28632863
$(flags)
28642864
$(opts)

0 commit comments

Comments
 (0)