What's the right statistic for iOS Memory footprint. Live Bytes? Real Memory? Other?

后端 未结 3 1968
盖世英雄少女心
盖世英雄少女心 2021-01-30 14:34

I\'m definitely confused on this point.

I have an iPad application that shows \'Live Bytes\' usage of 6-12mb in the object allocation instrument. If I pull up the memory

3条回答
  •  走了就别回头了
    2021-01-30 14:56

    'Live bytes' means memory allocated by your code (for example by malloc), so you have access to this memory. 'Real memory' shows physical amount of memory used by your app. This include also OpenGL textures, (possibly) sounds from Open AL...

    Live bytes is useful to check when you allocate and release memory in your code. Real memory is good indicator for memory optimization efficiency. And it's overhead causes 'low memory' warnings.

提交回复
热议问题