PX Cheng
PX Cheng

Reputation: 101

Confusion about the Memory Use of Xcode,the Real Memory of Activity Monitor

I would like to test APP in the process of running the physical memory occupied, the first way is to use xcode debugging APP, Memory Report shows real-time occupied physical memory, only about 90 MB; The second way to use Activity Monitor detection APP, In the Detail-> Summary-> Samples Real Memory display up to 200MB or so. So I am confused, which value can really represent APP physical memory occupied?

Xcode Memory Use

AM Real Mem

Upvotes: 0

Views: 582

Answers (1)

MoDJ
MoDJ

Reputation: 4425

An iOS app can be using 90 megs of actual RAM but it will typically have a lot more space as memory mapped files. These could be shared libraries or just files that you explicitly mmap. While iOS will kill your app if you use too much RAM memory, you can actually use quite a bit more mmap memory, up to about 650 Megs without getting a memory warning. The readout showing memory use directly in Xcode is your best readout for active RAM memory.

Upvotes: 1

Related Questions