lua-users home
lua-l archive

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


>1. Is there profiling tool to check Lua memory footprint?

No tool, except "ps" in Unix.
But you can try recompiling lmem.c with LUA_DEBUG defined and then print

 memdebug_numblocks
 memdebug_total
 memdebug_maxmem
 memdebug_memlimit

>2. I have built Lua 4.0 and can't get to work tools from
>  add-ons homepage (tklua for example). Problem is 
>  probably that tklua uses old Lua API which is not compatible with v4.
>  I get lua3.tgz and change tklua.h accordingly but this didn't help.

Are you using the new verions of tolua: tolua-4.0a.tar.gz?
This should work with Lua 4.0.
--lhf