diff --git a/src/parameters.jl b/src/parameters.jl index 85d2c984..67d4ff14 100644 --- a/src/parameters.jl +++ b/src/parameters.jl @@ -110,7 +110,7 @@ function Base.copy(p::Parameters) p.time_tolerance, p.memory_tolerance, p.enable_linux_perf, - copy(p.linux_perf_options), + p.linux_perf_options, ) end diff --git a/src/trials.jl b/src/trials.jl index 18a931de..915fd6d1 100644 --- a/src/trials.jl +++ b/src/trials.jl @@ -30,7 +30,7 @@ function Base.copy(t::Trial) copy(t.gctimes), t.memory, t.allocs, - isnothing(t.linux_perf_stats) ? nothing : copy(t.linux_perf_stats), + t.linux_perf_stats, ) end @@ -132,12 +132,7 @@ end function Base.copy(t::TrialEstimate) return TrialEstimate( - copy(t.params), - t.time, - t.gctime, - t.memory, - t.allocs, - isnothing(t.linux_perf_stats) ? nothing : copy(t.linux_perf_stats), + copy(t.params), t.time, t.gctime, t.memory, t.allocs, t.linux_perf_stats ) end