lua-users home
lua-l archive

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


It was thus said that the Great John Logsdon once stated:
> 
> I have added:
> 
> require "profiler"
> start()
> 
> ...
> 
> stop()
> 
> to the program but it can't find the start() function:
> 
> lua5.1: procStream1.lua:11: attempt to call global 'start' (a nil value)
> stack traceback:
>         procStream1.lua:11: in main chunk
>         [C]: ?
> 
> which sugggests that it hasn't loaded anything at all.

  Try using

	require "profiler"
	profiler.start()
	...
	profiler.stop()

  -spc