Skip to content

Instantly share code, notes, and snippets.

@wjlroe
Created August 30, 2010 00:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjlroe/556854 to your computer and use it in GitHub Desktop.
Save wjlroe/556854 to your computer and use it in GitHub Desktop.
X = fun() ->
lists:foldl(fun(Pid, Acc) ->
case erlang:process_info(Pid,message_queue_len) of
undefined ->
Acc;
{_, Len} ->
if
Len > 3 ->
[{Len, process_info(Pid)} | Acc];
true ->
Acc
end
end
end, [], processes())
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment