[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Memory problems
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 27 Jun 2000 11:47:29 -0300 (EST)
>From email@example.com Wed Jun 21 04:35:35 2000
>From: "Mauro Vezzosi"<firstname.lastname@example.org>
>1) At the start of my programs I load some my libraries written in Lua,
>but it is rare that I use all the functions of the libraries. Is there
>a simple method to know in runtime which functions are never used, so I
>can free them ? (analizing only the bytecode if possible, because the
>source couldn't be always available)
One simple way is to look at all GETGLOBAL opcodes.
Of course, this doesn't cover all cases, but it should cover most cases.
(It doesn't cover anonymous functions or global functions whose name is built
in run time.)