From a0c4df27f877e6f885ff98d20dce52d31b81cee8 Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Fri, 26 Feb 2021 17:20:46 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E7=BB=88=E7=89=881.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/recon-2.5.1/test.erl | 43 ++++++++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/src/test/recon-2.5.1/test.erl b/src/test/recon-2.5.1/test.erl index 112f948..a4073d6 100644 --- a/src/test/recon-2.5.1/test.erl +++ b/src/test/recon-2.5.1/test.erl @@ -337,33 +337,64 @@ get_test2() -> gc() -> lists:foreach(fun(Pid) -> erlang:garbage_collect(Pid) end, erlang:processes()). -tt_f1(Term) -> +tt_w1(Term) -> ?MEM_INFO_INIT(), io_lib:format("~w", [Term]), ?MEM_INFO_PRINT(0). -tt_f2(Term) -> +tt_w2(Term) -> ?MEM_INFO_INIT(), eFmt:format("~w", [Term]), ?MEM_INFO_PRINT(0). -tt_f11() -> +tt_w11() -> ?MEM_INFO_INIT(), io_lib:format("~w", [get_test()]), ?MEM_INFO_PRINT(0). -tt_f12() -> +tt_w12() -> ?MEM_INFO_INIT(), eFmt:format("~w", [get_test()]), ?MEM_INFO_PRINT(0). -tt_f21() -> +tt_w21() -> ?MEM_INFO_INIT(), io_lib:format("~w", [get_test2()]), ?MEM_INFO_PRINT(0). -tt_f22() -> +tt_w22() -> ?MEM_INFO_INIT(), eFmt:format("~w", [get_test2()]), ?MEM_INFO_PRINT(0). +tt_p1(Term) -> + ?MEM_INFO_INIT(), + io_lib:format("~p", [Term]), + ?MEM_INFO_PRINT(0). + +tt_p2(Term) -> + ?MEM_INFO_INIT(), + eFmt:format("~p", [Term]), + ?MEM_INFO_PRINT(0). + +tt_p11() -> + ?MEM_INFO_INIT(), + io_lib:format("~p", [get_test()]), + ?MEM_INFO_PRINT(0). + +tt_p12() -> + ?MEM_INFO_INIT(), + eFmt:format("~p", [get_test()]), + ?MEM_INFO_PRINT(0). + +tt_p21() -> + ?MEM_INFO_INIT(), + io_lib:format("~p", [get_test2()]), + ?MEM_INFO_PRINT(0). + +tt_p22() -> + ?MEM_INFO_INIT(), + eFmt:format("~p", [get_test2()]), + ?MEM_INFO_PRINT(0). + +