[luatex] Lua Profiler

Reinhard Kotucha reinhard.kotucha at web.de
Mon May 16 03:48:04 CEST 2011


Hi,
I compiled the Lua profiler from

  http://luaprofiler.luaforge.net

and installed the shared library in $SELFAUTOLOC/lib .

It works fine, except that the function profiler.start() ignores its
argument (the name of the output file).  It always creates a file
lprof_<random number>.

However, when I use the same shared library with stock Lua, I get

Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> require('profiler')
> profiler.start('foo')
> print('hello')
hello
> profiler.stop()
> os.exit()
Segmentation fault (core dumped)

Despite the segmentation fault, it creates a file

-rw-r--r-- 1 reinhard users     333 May 16 02:57 foo

at least.

Did anybody encounter similar problems?

luatex --version
This is LuaTeX, Version beta-0.70.0-2011051603 (rev 4267)

$ uname -rmo
2.6.30-gentoo-r5 x86_64 GNU/Linux

luaprofiler-2.0.2

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the luatex mailing list