http://erlang.org/doc/efficiency_guide/advanced.html#9
(I haven't tried this:
erts_debug:flat_size(dict:new()).