[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: memory / cpu profiling
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 1 Jul 2013 09:22:10 -0300
> > can I get information from the C API which memory is used by the interpreter? I would like to determine which parts of the LUA script are very memory and "time" expensive, so I can create better code.
> > Is there a hook or anything else to get memory / performance information during running?
> Use your own memory allocator, not the default one provided by the aux lib.
Or use collectgarbage'count'.