Xcode tool highlighting: look at bytes or common bytes?

I get a warning about the availability of memory in my iOS application, so I run Tools to see the allocations. Should I look at * All Allocations * Live Bytes or shared bytes?

Someone said that iOS can close my application if I use it for 22 MB, is it from the Live or Total bytes section?

enter image description here

+30
memory-management ios xcode instruments
Sep 27 '11 at 19:03
source share
1 answer

Live Bytes is the current usage that interests you, and shared bytes include all released selections. Another thing is to look at the graph and look at the tops. As an example, I saw a huge peak of about 27 MB in the application I was working on, knowing that I was able to reduce the peak memory usage to 8 MB.

Also, keep an eye on the time when you are working on your application, it is possible that over time there will be a significant increase in memory that has not leaked, just is no longer used.

For a description of the memory columns, see Explanation of Bytes and Common Bytes .

+46
Sep 27 '11 at 19:59
source share



All Articles