Corona frame rate, application memory and texture memory profiler. Ported from shanem’s AS3 com.flashdynamix.utils.SWFProfiler
require("loq_profiler").createProfiler()
loq_profiler | Corona frame rate, application memory and texture memory profiler. |
Functions | |
createProfiler | Creates and returns a display instance of the profiler. |
destroyProfiler | Destroys the Profiler removing it from the stage. |
Profiler | Creates a display group instance that displays graphs for frame rate and memory usage. |
Methods | |
averageFps | Returns: Average frames per second. |
currentFps | Current frames per second. |
currentMem | Application memory in kilobytes |
currentTextureMem | Texture memory used in kilobytes. |
resize | Resize the Profiler to adjust it to the display’s orientation. |
runningTime | Running time of the application in seconds. |
local function createProfiler( _onTop, _collect )
Creates and returns a display instance of the profiler.
require(“loq_profiler”).createProfiler()
A display group instance of the profiler.
Creates a display group instance that displays graphs for frame rate and memory usage.
Methods | |
averageFps | Returns: Average frames per second. |
currentFps | Current frames per second. |
currentMem | Application memory in kilobytes |
currentTextureMem | Texture memory used in kilobytes. |
resize | Resize the Profiler to adjust it to the display’s orientation. |
runningTime | Running time of the application in seconds. |
Creates and returns a display instance of the profiler.
local function createProfiler( _onTop, _collect )
Destroys the Profiler removing it from the stage.
local function destroyProfiler()
Returns: Average frames per second.
function Profiler:averageFps()
Current frames per second.
function Profiler:currentFps()
Application memory in kilobytes
function Profiler:currentMem()
Texture memory used in kilobytes.
function Profiler:currentTextureMem()
Resize the Profiler to adjust it to the display’s orientation.
function Profiler:resize()
Running time of the application in seconds.
function Profiler:runningTime()