[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to collect as much as possible with collectgarbage() ?
- From: Ralph Hempel <rhempel@...>
- Date: Fri, 10 Jul 2009 08:58:20 -0400
Luiz Henrique de Figueiredo wrote:
Making it display bytes now could break a lot of existing code, but
it's pretty easy to mod the code to add your own option...
For instance, collectgarbage("count") could return two values: one in K
and one in bytes. The change is simple:
And to combine this with Roberto's comment, the first value could be
in K, the second is (usage % 1024) :-)