Sort by call on tprof memory tests (Erlang/OTP 28) (#14565)

This commit is contained in:
Tomasz Marek Sulima
2025-06-09 22:27:08 +02:00
committed by José Valim
parent 8588a8d473
commit 752ca8864d
@@ -84,8 +84,8 @@ defmodule Mix.Tasks.Profile.TprofTest do
test "sorts based on memory per call", context do
in_tmp(context.test, fn ->
assert capture_io(fn ->
Tprof.run(["--type", "memory", "--sort", "per_call", "-e", @expr])
end) =~ ~r/\n:erlang\.integer_to_binary\/1.*\nEnum\.each\/2/s
Tprof.run(["--type", "memory", "--sort", "calls", "-e", @expr])
end) =~ ~r/Enum\.each\/2\s+1\s+.*\n:erlang\.integer_to_binary\/1\s+5\s+/s
end)
end