[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Is there a (simple) way to get the memory usage of a Lua object (e.g table)?
- From: 孙世龙 sunshilong <sunshilong369@...>
- Date: Sun, 27 Sep 2020 09:35:47 +0800
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