How do I make LÖVE interact with luaprofiler?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
rvj
Prole
Posts: 15
Joined: Fri Feb 10, 2012 5:55 pm

Re: How do I make LÖVE interact with luaprofiler?

Post by rvj »

I get an error with the summary.lua included (I installed via luarocks and followed vrid's instructions above).
The error is a bash error I guess:
lua summary.lua ~/Projects/YourProfile.prof
lua: summary.lua:5: '=' expected near 'LUA_PATH'

Line 5 is this: export LUA_PATH LUA_CPATH
I'm useless enough at scripting that I took option B: using summary2 posted by Boolsheet above. I managed to get that to work, but only after hacking apart an error:

lua: summary2.lua:90: attempt to perform arithmetic on local 'local_time' (a nil value)
stack traceback:
summary2.lua:90: in function 'CreateStreamSummary'
summary2.lua:133: in main chunk
[C]: ?

So for a quick fix in summary 2 just before line 90 I added local_time = 10.

So now I can get the total running time on each line, but not the average I guess.

Anyway, good thread, good instructions!
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 12 guests