File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,10 @@ defmodule Benchee.Profile do
26
26
@ builtin_profilers [ :cprof , :eprof , :fprof ]
27
27
# https://hexdocs.pm/mix/1.17.0/Mix.Tasks.Profile.Tprof.html
28
28
# Tprof was introduced in elixir 1.17.0 and requires OTP 27
29
- # Elixir errors out fine, but our test kind of put their trust into `builtin_profilers` being runnable.
30
- if Version . match? ( System . version ( ) , ">= 1.17.0" ) && String . to_integer ( System . otp_release ( ) ) >= 27 do
29
+ # Elixir errors out fine, but our test kind of put their trust into `builtin_profilers`
30
+ # being runnable.
31
+ if Version . match? ( System . version ( ) , ">= 1.17.0" ) &&
32
+ String . to_integer ( System . otp_release ( ) ) >= 27 do
31
33
@ builtin_profilers [ :tprof | @ builtin_profilers ]
32
34
end
33
35
Original file line number Diff line number Diff line change @@ -925,8 +925,7 @@ defmodule BencheeTest do
925
925
assert output =~ end_of_profiling_regex ( Profile . default_profiler ( ) )
926
926
end
927
927
928
- @ profilers [ :cprof , :eprof , :fprof ]
929
- for profiler <- @ profilers do
928
+ for profiler <- Benchee.Profile . builtin_profilers ( ) do
930
929
@ profiler profiler
931
930
test "integration profiling runs #{ inspect ( @ profiler ) } profiler" do
932
931
output =
You can’t perform that action at this time.
0 commit comments