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!
How do I make LÖVE interact with luaprofiler?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 12 guests