lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, list

Is there a (simple) way to get the memory usage of a Lua object (e.g table)?

I'd like to find out how much memory a Lua table is using - without
iterating through the table contents and counting up the usage. Is
there a Lua 5.4 function or 3rd party library that could help with
this.

Best regards
Sunshilong