Skip to content

Commit

Permalink
enable loading Profile in listener even if it is not in project (#49429)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Apr 20, 2023
1 parent 174e138 commit b864999
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ function profile_printing_listener()
try
while true
wait(PROFILE_PRINT_COND[])
profile = @something(profile, require(Base, :Profile))
profile = @something(profile, require(PkgId(UUID("9abbd945-dff8-562f-b5e8-e1ebf5ef1b79"), "Profile")))

invokelatest(profile.peek_report[])
if Base.get_bool_env("JULIA_PROFILE_PEEK_HEAP_SNAPSHOT", false) === true
println(stderr, "Saving heap snapshot...")
Expand Down

0 comments on commit b864999

Please sign in to comment.