Skip to content

develephant/corona-memory-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Corona Memory Monitor

A super simple memory monitor for Corona development. Displays memory and texture memory.

Usage

require("memory").new([delay, fill, x, y])

Tap the monitor text to toggle it on or off.

Parameters

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.

Examples

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})

Tips

Require the monitor in your main.lua at the top of the display list.

About

A super simple monitor to display memory usage for Corona development

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages