X-Git-Url: https://git.xandkar.net/?p=beam_stats.git;a=blobdiff_plain;f=src%2Fbeam_stats_processes.erl;h=90c38868c8d48bd1083158c27bcb3d2bdd43dac6;hp=2505178132606005c0178399fd1bd36f56c63806;hb=aa4143aa361a537ab11a8145846bd4ddfad1f56e;hpb=9ddb08ce8505f0cb3eadb9176cce1cf56da9e692 diff --git a/src/beam_stats_processes.erl b/src/beam_stats_processes.erl index 2505178..90c3886 100644 --- a/src/beam_stats_processes.erl +++ b/src/beam_stats_processes.erl @@ -21,7 +21,8 @@ -spec collect() -> t(). collect() -> - Ps = [beam_stats_process:of_pid(P) || P <- erlang:processes()], + Pids = beam_stats_source:erlang_processes(), + Ps = [beam_stats_process:of_pid(P) || P <- Pids], ?T { individual_stats = Ps @@ -32,7 +33,7 @@ collect() -> , count_garbage_collecting = length([P || P <- Ps, P#beam_stats_process.status =:= garbage_collecting]) , count_registered - = length(registered()) + = length(beam_stats_source:erlang_registered()) , count_runnable = length([P || P <- Ps, P#beam_stats_process.status =:= runnable]) , count_running