Skip to content

Commit 7ef6905

Browse files
authored
Sort by call on tprof memory tests (Erlang/OTP 28) (#14565)
1 parent 52495ba commit 7ef6905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/test/mix/tasks/profile.tprof_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ defmodule Mix.Tasks.Profile.TprofTest do
8484
test "sorts based on memory per call", context do
8585
in_tmp(context.test, fn ->
8686
assert capture_io(fn ->
87-
Tprof.run(["--type", "memory", "--sort", "per_call", "-e", @expr])
88-
end) =~ ~r/\n:erlang\.integer_to_binary\/1.*\nEnum\.each\/2/s
87+
Tprof.run(["--type", "memory", "--sort", "calls", "-e", @expr])
88+
end) =~ ~r/Enum\.each\/2\s+1\s+.*\n:erlang\.integer_to_binary\/1\s+5\s+/s
8989
end)
9090
end
9191

0 commit comments

Comments
 (0)