Profiling data

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.
Post Reply
Mr. Strange
Party member
Posts: 101
Joined: Mon Aug 11, 2008 5:19 am

Profiling data

Post by Mr. Strange »

I want to be able to profile the performance of my application. Specifically, I want:

1 - frame rate display.
2 - allocated memory information.
3 - callback with the name of the particular function I'm spending most of my time in. (Or just "a lot" of time in.)
4 - information about the number of times each function runs during a unit of time.

Anyone tackled these tasks yet in a love app?

--Mr. Strange
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

Re: Profiling data

Post by hagish »

we did some profile code in lua:

http://zwischenwelt.org/trac/lugre/brow ... rofile.lua (MIT License)

to display function call statistics

Code: Select all

StartGlobalProfiler()
StopGlobalProfiler()
GlobalProfilerOutput()
to measure a certain area.

Code: Select all

m = MakeProfiler()
m.StartSection("1")
m.StartSection("2")
m.StartSection("3")
m.FinishAndPrint()
Post Reply

Who is online

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