Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Daly <[email protected]>
  • Loading branch information
kpamnany and NHDaly authored Aug 16, 2024
1 parent 030af1c commit b1f6bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/Profile/src/Profile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ function _stream_heap_snapshot(prefix::AbstractString, all_one::Bool, redact_dat
end
end
end
function take_heap_snapshot(all_one::Bool=false; redact_data::Bool=true, dir::Union{Nothing,S}=nothing, streaming::Bool=false) where {S <: AbstractString}
function take_heap_snapshot(all_one::Bool=false; dir::Union{Nothing,S}=nothing, kwargs...) where {S <: AbstractString}
fname = "$(getpid())_$(time_ns()).heapsnapshot"
if isnothing(dir)
wd = pwd()
Expand All @@ -1342,7 +1342,7 @@ function take_heap_snapshot(all_one::Bool=false; redact_data::Bool=true, dir::Un
else
fpath = joinpath(expanduser(dir), fname)
end
return take_heap_snapshot(fpath, all_one; redact_data=redact_data, streaming=streaming)
return take_heap_snapshot(fpath, all_one; kwargs...)
end

"""
Expand Down

0 comments on commit b1f6bc1

Please sign in to comment.