[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Cannot get 5.1 profiler to work
- From: Sean Conner <sean@...>
- Date: Sun, 9 Apr 2017 21:21:28 -0400
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