Skip to content

Commit

Permalink
#6243
Browse files Browse the repository at this point in the history
  • Loading branch information
slepher committed Jun 11, 2015
1 parent 3ed926b commit 3458ec8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 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
8 changes: 3 additions & 5 deletions test/lager_massive_test.erl
Expand Up @@ -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} =
Expand All @@ -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)
Expand Down

0 comments on commit 3458ec8

Please sign in to comment.