Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat Instruments tools should I use to find out about my Monotouch app's memory usage?
    primarykey
    data
    text
    <p>I've been reading a lot about tracking memory usage in Instrument's but found little in combination with Monotouch.</p> <p>There seem to be to three oposing claims here:</p> <ol> <li>Use the <em>Allocation</em>s utility of <em>Instruments</em>. The number of "live bytes" is the amount of physical memory used by the application.</li> <li>Use the <em>Memory Monitor</em> plugin. From the list of processes, pick your app and check the "Real memory" column. That's the amount of RAM currently in use. </li> <li>Use <em>VM Tracker</em> and make automatic snapshots. The "Dirty Size" if what you're after.</li> </ol> <p>From what I've noticed:</p> <ul> <li>"Real Memory" drops as soon as GC is triggered</li> <li>Even if my "Live Bytes" remain around 30MB I will eventually catch memory warnings</li> <li>With constant "Live Bytes", "Real Memory" can increase significantly and easily grow to 200MB or more.</li> <li>While using QLPreviewController and viewing an insanly big Word document (1000 pages), scrolling through that document will grow real memory like crazy. If a memory warning is received, neither real memory, not live bytes drop at all. Eventually, the app will crash; Monotouch problem or Apple's problem?</li> <li>Sometimes, real memory seems to grow and nothing can stop it. Then again, GC seems to clear big chunks of it. There is no real pattern in this.</li> </ul> <p>So what is the correct answer? Is there exactly one?</p> <p><strong>EDIT</strong>: I attached two images. One showing memory usage in a stage in the middle of my app's life and the seconds one from way later. Both images reflect memory usage at the same point in the UI where nothing but two controllers are on screen. Maybe somebody can still comment what can be read from those number, especially the magic "Memory Tag 70".</p> <p><img src="https://i.stack.imgur.com/l23Vo.png" alt="enter image description here"> <img src="https://i.stack.imgur.com/LHSIh.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload