Home / Topic / Memory Monitor

Memory Monitor

Viewing 3 posts - 1 through 3 (of 3 total)
  • #9850

    If you want to see how much RAM and texture memory your pages are using, insert this code at the top of the first page of your book – it then displays for each new page loaded:      local monitorMem = function()        collectgarbage("collect")                local memUsed = (collectgarbage("count")) / 1000        local texUsed = (system.getInfo("textureMemoryUsed")) / 1000000                print("n


    MEMORY USAGE INFORMATION


    ")
        print("System Memory Used:", string.format("%.03f", memUsed), "Mb")        print("Texture Memory Used:", string.format("%.03f", texUsed), "Mb")    print("


    n")
        end        local memTimer = timer.performWithDelay(1000, monitorMem, -1)

    Anonymous
    Inactive
    #13916

    Don't tell anyone (this is a trick): if you add the following line into your settings.xml file, Kwik will code it for you (remember to set it to false when your app is read to be published):true

    tradexcel12
    Participant
    #13917

    AH HA! thanks guys!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.