Skip to content

Commit b1f6bc1

Browse files
kpamnanyNHDaly
andauthored
Apply suggestions from code review
Co-authored-by: Nathan Daly <[email protected]>
1 parent 030af1c commit b1f6bc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/Profile/src/Profile.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ function _stream_heap_snapshot(prefix::AbstractString, all_one::Bool, redact_dat
13271327
end
13281328
end
13291329
end
1330-
function take_heap_snapshot(all_one::Bool=false; redact_data::Bool=true, dir::Union{Nothing,S}=nothing, streaming::Bool=false) where {S <: AbstractString}
1330+
function take_heap_snapshot(all_one::Bool=false; dir::Union{Nothing,S}=nothing, kwargs...) where {S <: AbstractString}
13311331
fname = "$(getpid())_$(time_ns()).heapsnapshot"
13321332
if isnothing(dir)
13331333
wd = pwd()
@@ -1342,7 +1342,7 @@ function take_heap_snapshot(all_one::Bool=false; redact_data::Bool=true, dir::Un
13421342
else
13431343
fpath = joinpath(expanduser(dir), fname)
13441344
end
1345-
return take_heap_snapshot(fpath, all_one; redact_data=redact_data, streaming=streaming)
1345+
return take_heap_snapshot(fpath, all_one; kwargs...)
13461346
end
13471347

13481348
"""

0 commit comments

Comments
 (0)