Skip to content

Instantly share code, notes, and snippets.

@JesterXL
Created May 20, 2013 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JesterXL/5615023 to your computer and use it in GitHub Desktop.
Save JesterXL/5615023 to your computer and use it in GitHub Desktop.
Check memory usage in Corona SDK via Matthew Chapman and John Beebe
local monitorMem = function()
collectgarbage()
print( "MemUsage: " .. collectgarbage("count") )
local textMem = system.getInfo( "textureMemoryUsed" ) / 1000000
print( "TexMem: " .. textMem )
end
Runtime:addEventListener( "enterFrame", monitorMem )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment