Skip to content

Commit

Permalink
also precompile @time reports
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Sep 10, 2024
1 parent f82bb71 commit d00891e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/generate_precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ for match = Base._methods(+, (Int, Int), -1, Base.get_world_counter())
# interactive startup uses this
write(IOBuffer(), "")
# not critical, but helps hide unrelated compilation from @time when using --trace-compile
foo() = rand(2,2) * rand(2,2)
@time foo()
@time foo()
break # only actually need to do this once
end
"""
Expand Down

0 comments on commit d00891e

Please sign in to comment.