From 1ef509e4ef73efed23ee562cd7bc822b58406657 Mon Sep 17 00:00:00 2001 From: SisMaker <156736github> Date: Wed, 21 Sep 2022 23:49:46 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E6=B5=8B=E8=AF=95=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/measure/utTc.erl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/measure/utTc.erl b/src/measure/utTc.erl index 4dcba32..78d48f3 100644 --- a/src/measure/utTc.erl +++ b/src/measure/utTc.erl @@ -99,9 +99,8 @@ distribution([], _Aver, Greater, Less) -> ts(LoopTime, M, F, A) -> {Max, Min, Sum, Aver, Greater, Less} = loopTs(LoopTime, M, F, A, LoopTime, 0, 0, 0, []), io:format("=====================~n"), - io:format("execute Args:~p~n", [A]), - io:format("execute Fun :~p~n", [F]), - io:format("execute Mod :~p~n", [M]), + <<_:16, ArgsStr/binary>> = << <<", ", (iolist_to_binary(io_lib:format("~p", [OArg], [{chars_limit, 80}])))/binary>> || OArg <- A>>, + io:format("execute ~p:~p(~s).~n", [M, F, ArgsStr]), io:format("execute LoopTime:~p~n", [LoopTime]), io:format("MaxTime: ~10s(ns) ~10s(s)~n", [integer_to_binary(Max), float_to_binary(Max / 1000000000, [{decimals, 6}, compact])]), io:format("MinTime: ~10s(ns) ~10s(s)~n", [integer_to_binary(Min), float_to_binary(Min / 1000000000, [{decimals, 6}, compact])]), @@ -143,9 +142,8 @@ tm(ProcCnt, LoopTime, M, F, A) -> loopSpawn(ProcCnt, M, F, A, self(), LoopTime), {Max, Min, Sum, Aver, Greater, Less} = collector(ProcCnt, 0, 0, 0, ProcCnt, []), io:format("=====================~n"), - io:format("execute Args:~p~n", [A]), - io:format("execute Fun :~p~n", [F]), - io:format("execute Mod :~p~n", [M]), + <<_:16, ArgsStr/binary>> = << <<", ", (iolist_to_binary(io_lib:format("~p", [OArg], [{chars_limit, 80}])))/binary>> || OArg <- A>>, + io:format("execute ~p:~p(~s).~n", [M, F, ArgsStr]), io:format("execute LoopTime:~p~n", [LoopTime]), io:format("execute ProcCnts:~p~n", [ProcCnt]), io:format("PMaxTime: ~10s(ns) ~10s(s)~n", [integer_to_binary(Max), float_to_binary(Max / 1000000000, [{decimals, 6}, compact])]),