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