如何清除不指向自己代码的废弃内存? [英] How to clear abandoned memory that doesn't point to own code?

查看:136
本文介绍了如何清除不指向自己代码的废弃内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎我的应用程序正在放弃内存,因为记录的快照的持续内存不会降至零,并且当连续重复相同的操作集时堆继续增长:

It seems that my app is abandoning memory since the persistent memory of recorded heapshots don't fall to zero and the heap continue to grow when the same set of operations are continuously repeated:

为了找出问题,许多人建议 Bill的网站对我来说没用,因为我使用ARC,而他指的是参考问题。然后我跟着 Apple docs 并观看了一些与WWDC的废弃记忆相关的视频。他们都说仪器将有助于指出可能导致问题的代码行。所以我查看了每一个对象,但没有看到与我的代码有关的任何内容:

To find out the problems, many people suggest Bill's site that is not useful for me since I am using ARC, whereas he points to reference issues. I then followed Apple docs and watched some videos relating to abandoned memory from the WWDCs. They all say that instruments will help to point to the line of code that might cause the problems. So I reviewed every single object but didn't see anything relating to my code:

我现在卡住了,如果没有人可以提供帮助,我可能会提交应用并祈祷他们赢了不要拒绝我的应用。 :D

I get stuck with it now, if no one can help, I might submit the app and pray that they won't reject my app. :D

感谢阅读。

推荐答案

似乎从构建设置\构建选项\调度信息格式 > DWARF 到带有dSYM文件的DWARF 将解决问题。

It seems that changing Build Settings\Build Options\Debug Information Format from DWARF to DWARF with dSYM File will fix the problem.

这篇关于如何清除不指向自己代码的废弃内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆