Skip to content

Instantly share code, notes, and snippets.

@zaa
zaa / ets-memory-usage
Created March 29, 2014 23:12
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())]
).