lua-users home
lua-l archive

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

On 8/10/2011, at 2:21 AM, Oskar Forsslund wrote:

> I can now build a dll
> I can run lua -luatrace
> I can require"luatrace" if I assign it to a variable (local luatrace = require"luatrace" for example)
> I get a trace-out.txt file when i run luatrace
> when i then want to analyse it i run the command lua -luatrace.profile trace-out.txt (is this the correct way?)
> and get the following output:
> >lua -luatrace.profile trace-out.txt

You want to either:

lua -luatrace my_file.lua

(luatrace.profile is a shell script, not a lua script)


lua -luatrace.profile my_file.lua

(uatrace/profile.lua is a lua script)

What you're doing is asking lua to run a text file, which doesn't work.