Live Bytes vs Real Memory in Activity Monitor on iOS

亡梦爱人 提交于 2019-11-28 08:35:32

The Real Memory number includes memory blocks which your app has used and already released, but that the OS hasn't bothered to reclaim or reuse yet (but could if needed). Live memory is "dirty" memory which can't be reclaimed by the OS without killing your app, if your app is running and memory gets too tight.

It turns out my problem was NSZombieEnabled.

Disabling that in Edit Scheme > Run > Arguments > Environment Variables solved the extra memory use.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!