Skip to content

Instantly share code, notes, and snippets.

@zakovyrya
Created July 22, 2009 22:38
Show Gist options
  • Save zakovyrya/152363 to your computer and use it in GitHub Desktop.
Save zakovyrya/152363 to your computer and use it in GitHub Desktop.
hd(lists:reverse(lists:sort([ {element(2, process_info(P, memory)), P} || P <- erlang:processes(), erlang:is_process_alive(P)]))).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment