仪器 Heapshots - 该数据意味着什么?
我对标题感到抱歉。我知道这很糟糕,但我不知道如何表达。
我读到过关于 Leaks 工具如何工作的相互矛盾的陈述。我想弄清楚是否还有需要处理的泄漏,但我对 iOS 的内存管理非常陌生。
我的问题本质上是:这个屏幕截图中的数据看起来好还是坏?我知道没有足够的信息来为我找到具体问题,但我只是对我是否有问题感到困惑。
我读过“堆增长”和“持久”都是累积的而不是释放的东西。这是正确的吗?堆增长和持久性中的数字一开始都很大,然后每次都变小。这是否意味着事情最终会被清理,或者是否意味着我的内存使用量不断扩大?
I'm sorry about the title. I know it is rather poor but I wasn't sure how to word it.
I have read conflicting statements on how the Leaks instrument works. I am trying to figure out if I have any leaks left that I need to deal with, but I am very new to memory management with iOS.
My question is essentially: Does the data in this screenshot look good or bad? I know it isn't enough information to find specific problems for me or not but I am just confused as to whether I have a problem or not.
I have read that "Heap Growth" and "Persistent" are both things that are accumulative and are not released. Is this correct? The numbers in Heap Growth and Persistent both start large and get smaller each time. Does this mean things are eventually cleaning up or does it mean that I have my memory usage constantly expanding?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
坏的。堆增长是自上次标记堆以来应用程序增长的内存量。这意味着对象正在被分配但又被释放。您必须扩展堆快照并查看哪些对象被保留,并找出它们没有被释放的原因。理想情况下,每次标记堆时,增长将为 0。
泄漏部分中的蓝色条也表明您有一些内存泄漏。
Bad. The heapgrowth is the amount of memory your app has grown since the last time you marked the heap. Meaning objects are being allocated but ever released. You'll have to expand the heapshots and see which objects are being retained and work out why they are not being released. Ideally, each time you mark the heap, the growth would be 0.
The blue bars in the leaks section also shows you have something leaking memory.