瀏覽代碼

ft: 终版1.1

master
SisMaker 4 年之前
父節點
當前提交
a0c4df27f8
共有 1 個檔案被更改,包括 37 行新增6 行删除
  1. +37
    -6
      src/test/recon-2.5.1/test.erl

+ 37
- 6
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).

Loading…
取消
儲存