lua-users home
lua-l archive

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


Also could compile perfmon2 instrumentation into the lua executable used and start poking all around.
...If you're on a platform that supports this.


On Fri, Jul 25, 2008 at 3:12 PM, Makoto Hamanaka <naraxx800@yahoo.co.jp> wrote:
> 1) how serious is global variables wrt performance?
> 2) we tried LuaJIT. It gives 30-40% performance improvement on simple
> Lua code. But, in case of actual code(which involves access to some
> in-memory DB (mcO) and other C call), it is not giving any improvement.
> Any suggestions!
>
> - Manish Jain

How about trying AMD CodeAnalyst (free!) or Intel VTune (there's free
trial version) ? These tools support Windows and several distributions
of Linux.

http://developer.amd.com/cpu/CodeAnalyst/Pages/default.aspx
http://www.intel.com/cd/software/products/asmo-na/eng/239144.htm


It will tell you which module and which C function is consuming CPU time,
without big overhead. So you can find out which to blame, Lua or other
part of code.


AMD Codeanalyst can run basic profiling on both AMD and Intel CPUs.
And it can do detailed profiling on AMD CPUs, As I used Windows version.

VTune seems to have better call stack analysis. But it supports Intel
CPU only.

--
Makoto Hamanaka <naraxx800@yahoo.co.jp>





--
Bruce O. Benson, mailto:bbenson@gmail.com | http://www.tux.org
Donating spare CPU to science: Folding@home Team Debian (#2019)