From deb338283686e6c24e3df52557b292e239a5ed53 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Thu, 26 Nov 2020 10:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/measure/utTc.erl | 4 ++-- src/testCase/utTpfm.erl | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/measure/utTc.erl b/src/measure/utTc.erl index 8d37340..3adacd0 100644 --- a/src/measure/utTc.erl +++ b/src/measure/utTc.erl @@ -35,7 +35,7 @@ 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 Args:~p~n", [A]), io:format("execute Fun :~p~n", [F]), io:format("execute Mod :~p~n", [M]), io:format("execute LoopTime:~p~n", [LoopTime]), @@ -79,7 +79,7 @@ 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 Args:~p~n", [A]), io:format("execute Fun :~p~n", [F]), io:format("execute Mod :~p~n", [M]), io:format("execute LoopTime:~p~n", [LoopTime]), diff --git a/src/testCase/utTpfm.erl b/src/testCase/utTpfm.erl index e2f161b..01ffd0b 100644 --- a/src/testCase/utTpfm.erl +++ b/src/testCase/utTpfm.erl @@ -549,3 +549,13 @@ testHex(0, Mod, Fun, Args, _) -> testHex(N, Mod, Fun, Args, _) -> testHex(N - 1, Mod, Fun, Args, Mod:Fun(Args)). +tTuple(0, _) -> + ok; +tTuple(N, {tag, OldN}) -> + tTuple(N -1, {tag, N}). + +tPd(0, _) -> + ok; +tPd(N, _) -> + erlang:put(pdVpSize, N), + tPd(N -1, erlang:get(pdVpSize)). \ No newline at end of file