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
    #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.

Privacy Preference Center

Strictly Necessary

these coolies are for WP-SpamShield, gdpr-wp, woocommerce, paypal

PHPSESSID, SJECT16, JCS_INENREF, JCS_INENTIM, gdpr, woocommerce_cart_hash, woocommerce_items_in_cart, woocommerce_recently_viewed, wordpress_, wordpress_logged_in_, wordpress_sec_, wordpress_test_cookie, wp_woocommerce_session_, AKDC, akavpau_ppsd

Functionality

WordPress cookie created when auto-saving a post in the editor.

wp-saving-post, wp-settings-, wp-settings-time-

Performance

google analytic

__utma,__utmb,__utmc,__utmz,_ga,_gid,_gat

Advertising