lua-users home
lua-l archive

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


	Hi there, Luiz Henrique de Figueiredo!
	On Tuesday, 12 of December you wrote:

> >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

Tnx, it works.
More precisely, after compiling with LUA_DEBUG
T.totalmem() and such available to Lua.


-- 
Best regards, Maxim F. Ischenko.