1 -module(beam_stats_ets_table).
3 -include("include/beam_stats_ets_table.hrl").
17 % integer() is just a workaround, to let us mock ets:tid(), which is
18 % opaque, but represented as an integer, without Dialyzer complaining.
28 WordSize = beam_stats_source:erlang_system_info(wordsize),
29 NumberOfWords = beam_stats_source:ets_info(ID, memory),
30 NumberOfBytes = NumberOfWords * WordSize,
33 , name = beam_stats_source:ets_info(ID, name)
34 , size = beam_stats_source:ets_info(ID, size)
35 , memory = NumberOfBytes