File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -587,7 +587,6 @@ function generate_benchmark_definition(
587
587
),
588
588
)
589
589
if $ (params. experimental_enable_linux_perf)
590
- $ (setup)
591
590
# Based on https://github.com/JuliaPerf/LinuxPerf.jl/blob/a7fee0ff261a5b5ce7a903af7b38d1b5c27dd931/src/LinuxPerf.jl#L1043-L1061
592
591
__linux_perf_groups = BenchmarkTools. LinuxPerf. set_default_spaces (
593
592
$ (params. linux_perf_options. events),
@@ -608,10 +607,9 @@ function generate_benchmark_definition(
608
607
end
609
608
end
610
609
611
- if isnothing (__linux_perf_bench)
612
- $ (teardown)
613
- else
610
+ if ! isnothing (__linux_perf_bench)
614
611
try
612
+ $ (setup)
615
613
BenchmarkTools. LinuxPerf. enable! (__linux_perf_bench)
616
614
# We'll just run it one time.
617
615
__return_val_2 = $ (invocation)
You can’t perform that action at this time.
0 commit comments