Skip to content

Commit

Permalink
Use tempdir() to store heap snapshot files instead of abspatch ~= roo…
Browse files Browse the repository at this point in the history
…tdir (#50026)

(cherry picked from commit 877b368)
  • Loading branch information
adnan-alhomssi authored and KristofferC committed Jul 11, 2023
1 parent f250b76 commit afb80a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Profile/src/Profile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ function take_heap_snapshot(filepath::String, all_one::Bool=false)
return filepath
end
function take_heap_snapshot(all_one::Bool=false)
f = abspath("$(getpid())_$(time_ns()).heapsnapshot")
f = joinpath(tempdir(), "$(getpid())_$(time_ns()).heapsnapshot")
return take_heap_snapshot(f, all_one)
end

Expand Down

0 comments on commit afb80a1

Please sign in to comment.