From b1f6bc14d2a8c4513a8e1b8827a8019cf6665973 Mon Sep 17 00:00:00 2001 From: Kiran Pamnany Date: Fri, 16 Aug 2024 16:07:27 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Nathan Daly --- stdlib/Profile/src/Profile.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/Profile/src/Profile.jl b/stdlib/Profile/src/Profile.jl index d3659cb6f2a4f1..799f23034b9ac6 100644 --- a/stdlib/Profile/src/Profile.jl +++ b/stdlib/Profile/src/Profile.jl @@ -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() @@ -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 """