Skip to content

Commit 07883ad

Browse files
committed
Format
1 parent e6271b1 commit 07883ad

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

src/parameters.jl

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@ mutable struct Parameters
2020
end
2121

2222
# TODO: determine whether perf is available
23-
const DEFAULT_PARAMETERS = Parameters(5.0, 10000, 1, false, 0, true, false, 0.05, 0.01, Sys.islinux(), LinuxPerf.parse_pstats_options([]))
23+
const DEFAULT_PARAMETERS = Parameters(
24+
5.0,
25+
10000,
26+
1,
27+
false,
28+
0,
29+
true,
30+
false,
31+
0.05,
32+
0.01,
33+
Sys.islinux(),
34+
LinuxPerf.parse_pstats_options([]),
35+
)
2436

2537
function Parameters(;
2638
seconds=DEFAULT_PARAMETERS.seconds,
@@ -74,8 +86,11 @@ function Parameters(
7486
time_tolerance != nothing ? time_tolerance : default.time_tolerance
7587
params.memory_tolerance =
7688
memory_tolerance != nothing ? memory_tolerance : default.memory_tolerance
77-
params.experimental_enable_linux_perf =
78-
experimental_enable_linux_perf != nothing ? experimental_enable_linux_perf : default.experimental_enable_linux_perf
89+
params.experimental_enable_linux_perf = if experimental_enable_linux_perf != nothing
90+
experimental_enable_linux_perf
91+
else
92+
default.experimental_enable_linux_perf
93+
end
7994
params.linux_perf_options =
8095
linux_perf_options != nothing ? linux_perf_options : default.linux_perf_options
8196
return params::BenchmarkTools.Parameters

src/trials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mutable struct Trial
1111
linux_perf_stats::Union{LinuxPerf.Stats,Nothing}
1212
end
1313

14-
struct TrialContents{A, B}
14+
struct TrialContents{A,B}
1515
time::Float64
1616
gctime::Float64
1717
memory::Int

0 commit comments

Comments
 (0)