lua-users home
lua-l archive

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


Fabio Mascarenhas wrote:
Shmuel, the only changes from 2.0.1 to the current CVS are these fixes, so feel free to try. :-)

OK, I felt free and tried :)

The 4-th test case:
  require"profiler"
  profiler.stop()
  profiler.stop() --> crash here

The 5-th test case:
  require"profiler"
  profiler.start()
  profiler.start() --> takes 7.7 sec. on my  machine;
  -- makes a nonsensical dump file containing 100003 lines.

IMHO, since the library isn't meant to allow nested start/stop calls, it should just check its state ("started" or not) on every start/stop call and either raise an error or simply ignore the out-of-order calls.
--
Shmuel