* src/ejabberd_debug.erl: Fix small typo.
SVN Revision: 2062
This commit is contained in:
parent
79f9911c33
commit
98ad6ccbca
|
@ -31,11 +31,12 @@
|
|||
get_so_path/0, get_bin_path/0]).
|
||||
|
||||
start() ->
|
||||
%ejabberd_cover:start(),
|
||||
application:start(ejabberd).
|
||||
|
||||
stop() ->
|
||||
application:stop(ejabberd).
|
||||
|
||||
%ejabberd_cover:stop().
|
||||
|
||||
get_so_path() ->
|
||||
case os:getenv("EJABBERD_SO_PATH") of
|
||||
|
|
|
@ -90,6 +90,7 @@ process(["status"]) ->
|
|||
end;
|
||||
|
||||
process(["stop"]) ->
|
||||
%ejabberd_cover:stop(),
|
||||
init:stop(),
|
||||
?STATUS_SUCCESS;
|
||||
|
||||
|
|
|
@ -26,14 +26,15 @@
|
|||
|
||||
-module(ejabberd_debug).
|
||||
|
||||
-export([eprof_start/0, eprof_stop/0]).
|
||||
-export([eprof_start/0, stop/0]).
|
||||
-export([pids/0]).
|
||||
|
||||
eprof_start() ->
|
||||
eprof:start(),
|
||||
eprof:profile(pids()).
|
||||
|
||||
eprof_stop() ->
|
||||
%% Stop all profilers
|
||||
stop() ->
|
||||
catch eprof:stop(),
|
||||
ok.
|
||||
|
||||
|
|
Loading…
Reference in New Issue