Skip to content

Instantly share code, notes, and snippets.

@zaa
Created March 29, 2014 23:12
Show Gist options
  • Save zaa/9864639 to your computer and use it in GitHub Desktop.
Save zaa/9864639 to your computer and use it in GitHub Desktop.
Erlang: ETS memory usage top
lists:usort(
fun({_, M1} , {_, M2}) -> M1 > M2 end,
[{ets:info(Tab, name), ets:info(Tab, memory)*erlang:system_info(wordsize)} || Tab <- lists:sort(ets:all())]
).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment