Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesduncombe/0ffc7a9e7db256e7ebbb37edcfb0c8fb to your computer and use it in GitHub Desktop.
Save jamesduncombe/0ffc7a9e7db256e7ebbb37edcfb0c8fb to your computer and use it in GitHub Desktop.
Grab the message queue length
for _x <- 1..100 do
for {name, pid, _type, _whatever} <- Supervisor.which_children(Process.whereis(__MODULE__.Supervisor)) do
{_msg, n } = Process.info(p, :message_queue_len)
IO.puts("#{name}: #{String.duplicate("#", n)}")
end
:timer.sleep(1000)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment