[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: measuring memory consumptions
- From: Valerio Schiavoni <valerio.schiavoni@...>
- Date: Mon, 19 Jul 2010 11:30:58 +0200
Hello again,
i've got it working. The problem with is that it doesn't take into
account referenced objects:
require"getsize"
debug=require'debug'
a={1,2,3}
b={1,2,3,4,5,6,7}
c={a,b}
print(debug.getsize(a)) -- 152
print(debug.getsize(b)) -- 216
print(debug.getsize(c)) -- 136 !!
On Mon, Jul 19, 2010 at 11:13 AM, Valerio Schiavoni
<valerio.schiavoni@gmail.com> wrote:
> Hello Vadim,
>
> this function looks exactly what I was searching for.
> If I understand correctly, it 'extends' the debug module by adding the
> getsize function to it.
>
> But, how do I use it?
>
> On Fri, Jul 16, 2010 at 2:41 PM, Vadim Peretokin <vperetokin@gmail.com> wrote:
>> http://code.matthewwild.co.uk/lua-getsize/ ;?
>