Skip to content

Commit

Permalink
fix missing import. tweak profile precompile script
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Feb 16, 2022
1 parent 4ab3218 commit 994e8b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/Profile/src/Profile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ Set the duration in seconds of the profile "peek" that is triggered via `SIGINFO
set_peek_duration(t::Float64) = ccall(:jl_set_profile_peek_duration, Cvoid, (Float64,), t)

precompile_script = """
Profile.@profile sleep(0.5)
import Profile
Profile.@profile while Profile.len_data() < 1000; rand(10,10) * rand(10,10); end
Profile.peek_report[]()
Profile.clear()
"""
Expand Down

0 comments on commit 994e8b0

Please sign in to comment.