Skip to content

Instantly share code, notes, and snippets.

@shino
Created May 8, 2013 09:40
Show Gist options
  • Save shino/5539404 to your computer and use it in GitHub Desktop.
Save shino/5539404 to your computer and use it in GitHub Desktop.
Print supervisor tree (snippet to use in shell)
f(C),
C = fun(Id, C2) -> {Id, [case S of
{CId, _, worker, _} -> CId;
{CId, _, supervisor, _} -> C2(CId, C2)
end || S <- supervisor:which_children(Id)]} end.
C(riak_core_sup,C).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment