From 3458ec842b3a30b6296ee9e21c34ca76a4ecaf0e Mon Sep 17 00:00:00 2001 From: slepher Date: Thu, 11 Jun 2015 16:47:20 +0800 Subject: [PATCH] #6243 --- massive_test.sh | 2 +- test/lager_massive_test.erl | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/massive_test.sh b/massive_test.sh index 4b94895a..e3125335 100644 --- a/massive_test.sh +++ b/massive_test.sh @@ -1,3 +1,3 @@ ./rebar compile ./rebar eunit compile_only=true -erl -pa ebin -pa deps/goldrush/ebin/ -pa .eunit -config app.config -sname lager_test -s lager_massive_test start_apps -setcookie abc +erl -pa ebin -pa deps/goldrush/ebin/ -pa .eunit -config app.config -sname lager_test -s lager_massive_test start_apps diff --git a/test/lager_massive_test.erl b/test/lager_massive_test.erl index b73a4033..a3ab9330 100644 --- a/test/lager_massive_test.erl +++ b/test/lager_massive_test.erl @@ -37,17 +37,14 @@ start_apps() -> start(Num, Interval) -> start(Num, Interval, sample_msg()). -start_trace_main() -> - fprof:trace([start, {procs, whereis(lager_massive_test_sup)}]). - start_trace_lager() -> fprof:trace([start, {procs, whereis(lager_event)}]). analyze() -> fprof:trace([stop]), fprof:profile(), - fprof:analyze([totals, no_details]). - + fprof:analyse([totals, no_details]), + start(0, 100). start(Num, Interval, Msg) -> {NMsg, NArgs} = @@ -68,6 +65,7 @@ start(Num, Interval, Msg) -> lager:error("start massive test sup failed ~p", [Reason]) end end, + fprof:trace([start, {procs, whereis(lager_massive_test_sup)}]), lists:foreach( fun({_Name, PId, _, _}) -> gen_server:cast(PId, stop)