* src/ejabberd_debug.erl: Fix small typo.

SVN Revision: 2062
This commit is contained in:
Mickaël Rémond 2009-05-07 07:17:29 +00:00
parent 79f9911c33
commit 98ad6ccbca
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -90,6 +90,7 @@ process(["status"]) ->
end;
process(["stop"]) ->
%ejabberd_cover:stop(),
init:stop(),
?STATUS_SUCCESS;

View File

@ -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.