Skip to content

Commit 336b0fd

Browse files
committed
Don't copy LinuxPerf Stats
It's not clear to me how deep the copying should be, but I think this should be fine for now and it matches the semantics of `copy` better.
1 parent bbfb733 commit 336b0fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/trials.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Base.copy(t::Trial)
3030
copy(t.gctimes),
3131
t.memory,
3232
t.allocs,
33-
isnothing(t.linux_perf_stats) ? nothing : copy(t.linux_perf_stats),
33+
t.linux_perf_stats,
3434
)
3535
end
3636

@@ -137,7 +137,7 @@ function Base.copy(t::TrialEstimate)
137137
t.gctime,
138138
t.memory,
139139
t.allocs,
140-
isnothing(t.linux_perf_stats) ? nothing : copy(t.linux_perf_stats),
140+
t.linux_perf_stats,
141141
)
142142
end
143143

0 commit comments

Comments
 (0)