Created
July 8, 2020 17:42
-
-
Save jamesduncombe/0ffc7a9e7db256e7ebbb37edcfb0c8fb to your computer and use it in GitHub Desktop.
Grab the message queue length
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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