|
|
@@ -32,6 +32,8 @@ enable() ->
|
|
|
disable() ->
|
|
|
emqx_ctl:unregister_command(recon).
|
|
|
|
|
|
+cmd(["observer_cli"]) ->
|
|
|
+ observer_cli:start();
|
|
|
cmd(["memory"]) ->
|
|
|
Print = fun(Key, Keyword) ->
|
|
|
emqx_ctl:print("~-20s: ~w~n", [concat(Key, Keyword), recon_alloc:memory(Key, Keyword)])
|
|
|
@@ -56,7 +58,8 @@ cmd(["proc_count", Attr, N]) ->
|
|
|
emqx_ctl:print("~p~n", [recon:proc_count(list_to_atom(Attr), list_to_integer(N))]);
|
|
|
|
|
|
cmd(_) ->
|
|
|
- emqx_ctl:usage([{"recon memory", "recon_alloc:memory/2"},
|
|
|
+ emqx_ctl:usage([{"observer_cli", "observer_cli:start()"},
|
|
|
+ {"recon memory", "recon_alloc:memory/2"},
|
|
|
{"recon allocated", "recon_alloc:memory(allocated_types, current|max)"},
|
|
|
{"recon bin_leak", "recon:bin_leak(100)"},
|
|
|
{"recon node_stats", "recon:node_stats(10, 1000)"},
|