Skip to content

Commit 4cc75ee

Browse files
committed
Format
1 parent 7666146 commit 4cc75ee

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/execution.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,10 +596,12 @@ function generate_benchmark_definition(
596596
__linux_perf_bench = nothing
597597
try
598598
__linux_perf_bench = BenchmarkTools.LinuxPerf.make_bench_threaded(
599-
__linux_perf_groups; threads=$(params.linux_perf_options.threads)
599+
__linux_perf_groups;
600+
threads=$(params.linux_perf_options.threads),
600601
)
601602
catch e
602-
if e isa ErrorException && startswith(e.msg, "perf_event_open error : ")
603+
if e isa ErrorException &&
604+
startswith(e.msg, "perf_event_open error : ")
603605
@warn "Perf is disabled"
604606
else
605607
rethrow()

test/SerializationTests.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ using Test
66
function eq(x::T, y::T) where {T<:Union{values(BenchmarkTools.SUPPORTED_TYPES)...}}
77
return all(i -> eq(getfield(x, i), getfield(y, i)), 1:fieldcount(T))
88
end
9-
function eq(x::@NamedTuple{events::Expr, spaces::Expr, threads::Bool}, y::@NamedTuple{events::Expr, spaces::Expr, threads::Bool})
10-
x == y
9+
function eq(
10+
x::@NamedTuple{events::Expr, spaces::Expr, threads::Bool},
11+
y::@NamedTuple{events::Expr, spaces::Expr, threads::Bool},
12+
)
13+
return x == y
1114
end
1215
function eq(x::LinuxPerf.Stats, y::LinuxPerf.Stats)
13-
all(a->eq(a[1], a[2]), zip(x.threads, y.threads))
16+
return all(a -> eq(a[1], a[2]), zip(x.threads, y.threads))
1417
end
1518
function eq(x::LinuxPerf.ThreadStats, y::LinuxPerf.ThreadStats)
16-
x.pid == y.pid && x.groups == y.groups
19+
return x.pid == y.pid && x.groups == y.groups
1720
end
1821
eq(x::T, y::T) where {T} = isapprox(x, y)
1922

0 commit comments

Comments
 (0)