IPhone: Xcode, tools, memory allocation. What is reasonable?

I use tools to analyze my memory usage in the iPhone app I am developing. I was wondering what is a reasonable size of memory allocation?

When I get information about my goal, do I suppose to check the checkboxes to ignore the prefixes "NS", "CF" and "Malloc" or not? When I don't ignore them, I get what seems to be a pretty big value for general bytes when starting around 47 MB, although live bytes are only about 6 MB. When I ignore the prefixes, I will get 1MB in total and 350KB live. What would be a good reason to ignore or not ignore prefixes? What is the difference between shared and live bytes?

And finally, how can I reduce the size of the application’s memory area if necessary?

+3
source share
1 answer

Flags to ignore NS, CF, or Malloc just let you filter to different subsets of common distributions. Regardless of whether you check them, it depends on what you are looking for. Obviously, leaving them unchecked gives you the most complete picture, but if you are looking for something specific, you can ignore other categories.

Live data is that which has not been released, while shared is all that you have ever allocated, even if it was released.

, "" , . . . , , , , 4 . .

VM Tracker, .

+5

All Articles