update: julials: automatically create tracecompile.jl file at setup
This commit is contained in:
parent
6fb7a8f544
commit
d104726b73
2 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ if !ispath(project_path)
|
|||
try
|
||||
mkdir(project_path)
|
||||
@info "Created $(project_path)"
|
||||
touch(joinpath(project_path, "tracecompile.jl"))
|
||||
catch e
|
||||
@error e
|
||||
@error dump(e)
|
||||
|
|
|
@ -4,6 +4,7 @@ cd(project_path)
|
|||
@info "now at " pwd()
|
||||
run(`julia --project=. -e 'using Pkg; Pkg.update()'`)
|
||||
compile_traces = Iterators.filter(eachline("tracecompile.jl")) do line
|
||||
# Remove anonymous functions from compile trace
|
||||
!startswith(line, '#') && !occursin(r"\#\d+\#\d+", line)
|
||||
end |> join
|
||||
read("precompile_exec_head.jl", String) * compile_traces |> (b -> write("precompile_exec.jl", b))
|
||||
|
|
Loading…
Reference in a new issue