[erlang-questions] Memory occupied by an individual row in a mnesia table

Devangana Tarafdar devangana@REDACTED
Wed Jul 24 20:58:42 CEST 2013


Hello,

I am attempting to find the size occupied in memory by each row of a mnesia
table.

The table is of types ram_copies.

I am doing the following:

[A] = mnesia:dirty_read(Table_name, Key)
Size_A = erts_debug:flat_size(A)

( I read about  the erts_debug function from
http://www.erlang.org/doc/efficiency_guide/processes.html#id68532 )

I was wondering if this is the correct approach or is there another method
that I should be applying here ?


Thank you for any suggestions/corrections,

Devangana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130724/d06cc611/attachment.htm>


More information about the erlang-questions mailing list