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 @@ -580,7 +580,6 @@ function generate_benchmark_definition(
580
580
),
581
581
)
582
582
if $ (params. experimental_enable_linux_perf)
583
- $ (setup)
584
583
# Based on https://github.com/JuliaPerf/LinuxPerf.jl/blob/a7fee0ff261a5b5ce7a903af7b38d1b5c27dd931/src/LinuxPerf.jl#L1043-L1061
585
584
__linux_perf_groups = BenchmarkTools. LinuxPerf. set_default_spaces (
586
585
$ (params. linux_perf_options. events),
@@ -601,10 +600,9 @@ function generate_benchmark_definition(
601
600
end
602
601
end
603
602
604
- if isnothing (__linux_perf_bench)
605
- $ (teardown)
606
- else
603
+ if ! isnothing (__linux_perf_bench)
607
604
try
605
+ $ (setup)
608
606
BenchmarkTools. LinuxPerf. enable! (__linux_perf_bench)
609
607
# We'll just run it one time.
610
608
__return_val_2 = $ (invocation)
You can’t perform that action at this time.
0 commit comments