Skip to content

Commit

Permalink
measure time of some ops from mod_roster
Browse files Browse the repository at this point in the history
  • Loading branch information
michalwski committed Mar 27, 2015
1 parent 7f2d61e commit 89871e9
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions apps/ejabberd/src/mod_roster.erl
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,22 @@
Result :: term().


-define(BACKEND, (mod_roster_backend:backend())).
-define(BACKEND, mod_roster_backend).

start(Host, Opts) ->
IQDisc = gen_mod:get_opt(iqdisc, Opts, one_queue),

gen_mod:start_backend_module(?MODULE, Opts),
TrackedFuns = [read_roster_version,
write_roster_version,
get_roster,
get_roster_by_jid_t,
get_subscription_lists,
roster_subscribe_t,
get_roster_by_jid_with_groups_t,
update_roster_t,
del_roster_t,
read_subscription_and_groups
],
gen_mod:start_backend_module(?MODULE, Opts, TrackedFuns),
?BACKEND:init(Host, Opts),

ejabberd_hooks:add(roster_get, Host,
Expand Down

0 comments on commit 89871e9

Please sign in to comment.