Skip to content

Commit

Permalink
Update stdlib/Profile/src/Profile.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Feb 14, 2022
1 parent 0580c3a commit 660aa19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stdlib/Profile/src/Profile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ 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 = """
Base.loaded_modules[Base.PkgId(Base.UUID("9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"), "Profile")].@profile sleep(1)
Base.loaded_modules[Base.PkgId(Base.UUID("9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"), "Profile")].peek_report[]()
Base.loaded_modules[Base.PkgId(Base.UUID("9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"), "Profile")].clear()
let _Profile = Base.PkgId(Base.UUID("9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"), "Profile")
Base.loaded_modules[_Profile].@profile sleep(1)
Base.loaded_modules[_Profile].peek_report[]()
Base.loaded_modules[_Profile].clear()
end
"""

####
Expand Down

0 comments on commit 660aa19

Please sign in to comment.