Page 1 of 2

Profiler

Posted: Thu Jun 24, 2010 7:51 pm
by Luiji
Are there any profiling tools for LOVE games?

Re: Profiler

Posted: Thu Jun 24, 2010 8:51 pm
by vrld

Re: Profiler

Posted: Fri Jun 25, 2010 3:56 am
by Luiji
That's not what I meant, I meant a program that times how long each method of my game takes and how much memory each uses. It's good for finding memory leaks and stuff.

Re: Profiler

Posted: Fri Jun 25, 2010 3:58 am
by TechnoCat
Memory leaks in Lua?
PiL: 17 - Weak Tables
PiL wrote:Lua does automatic memory management. A program only creates objects (tables, functions, etc.); there is no function to delete objects. Lua automatically deletes objects that become garbage, using garbage collection. That frees you from most of the burden of memory management and, more important, frees you from most of the bugs related to that activity, such as dangling pointers and memory leaks.

Re: Profiler

Posted: Fri Jun 25, 2010 6:13 am
by Luiji
Leaks were just an example of what a profiler does.

Re: Profiler

Posted: Fri Jun 25, 2010 6:33 am
by Elvashi
While leaks are something of a non-issue in Lua, for once I'm actually going have to agree with Luiji, Love needs a profiler. if it has one, then it needs to be more widely mentioned.
Guessing at what is and isn't performant is largely a fool's game, but we don't really have the tools to easily do otherwise.

Re: Profiler

Posted: Fri Jun 25, 2010 7:16 am
by Luiji
Elvashi wrote:for once I'm actually going have to agree with Luiji
The "for once" is unrequired and only achieves making me feel bad about myself.

Love should have profiling built in, since it would be hard to implement any other way.

Re: Profiler

Posted: Fri Jun 25, 2010 7:30 am
by bartbes
Not true, why can't an external lib do this?

Re: Profiler

Posted: Fri Jun 25, 2010 8:09 am
by hertzcastle
it can already be done, but built in stuff is always more lovely.

Re: Profiler

Posted: Fri Jun 25, 2010 11:14 am
by vrld
I don't think there should be a profiler in love, as this is not relevant to the gamer.
Lovers should be able to use something like this: http://luaprofiler.luaforge.net/ or this: http://www.lua.org/pil/23.3.html if they need to.