A super simple memory monitor for Corona development. Displays memory and texture memory.
require("memory").new([delay, fill, x, y])
Tap the monitor text to toggle it on or off.
All parameters are optional.
Name | Description |
---|---|
delay | Pass 0 to run on every frame. Pass milliseconds value to delay update. Default: 0 |
fill | A table with the preferred text color values. Default: {1,1,1} (white). |
x | The x position of the monitor. Default is top left of the viewable screen. |
y | The y position of the monitor. Default is top left of the viewable screen. |
Update every frame:
require("memory").new()
Update every second:
require("memory").new(1000)
Update every frame, black text:
require("memory").new(0, {0,0,0})
Require the monitor in your main.lua at the top of the display list.