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 @@ -573,7 +573,6 @@ function generate_benchmark_definition(
573
573
),
574
574
)
575
575
if $ (params. experimental_enable_linux_perf)
576
- $ (setup)
577
576
# Based on https://github.com/JuliaPerf/LinuxPerf.jl/blob/a7fee0ff261a5b5ce7a903af7b38d1b5c27dd931/src/LinuxPerf.jl#L1043-L1061
578
577
__linux_perf_groups = BenchmarkTools. LinuxPerf. set_default_spaces (
579
578
$ (params. linux_perf_options. events),
@@ -594,10 +593,9 @@ function generate_benchmark_definition(
594
593
end
595
594
end
596
595
597
- if isnothing (__linux_perf_bench)
598
- $ (teardown)
599
- else
596
+ if ! isnothing (__linux_perf_bench)
600
597
try
598
+ $ (setup)
601
599
BenchmarkTools. LinuxPerf. enable! (__linux_perf_bench)
602
600
# We'll just run it one time.
603
601
__return_val_2 = $ (invocation)
You can’t perform that action at this time.
0 commit comments