仪器 Heapshots - 该数据意味着什么?

发布于 2024-12-01 06:49:06 字数 360 浏览 0 评论 0原文

我对标题感到抱歉。我知道这很糟糕,但我不知道如何表达。

我读到过关于 Leaks 工具如何工作的相互矛盾的陈述。我想弄清楚是否还有需要处理的泄漏,但我对 iOS 的内存管理非常陌生。

Leaks - Heapshots

我的问题本质上是:这个屏幕截图中的数据看起来好还是坏?我知道没有足够的信息来为我找到具体问题,但我只是对我是否有问题感到困惑。

我读过“堆增长”和“持久”都是累积的而不是释放的东西。这是正确的吗?堆增长和持久性中的数字一开始都很大,然后每​​次都变小。这是否意味着事情最终会被清理,或者是否意味着我的内存使用量不断扩大?

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.

Leaks - Heapshots

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

×纯※雪 2024-12-08 06:49:06

坏的。堆增长是自上次标记堆以来应用程序增长的内存量。这意味着对象正在被分配但又被释放。您必须扩展堆快照并查看哪些对象被保留,并找出它们没有被释放的原因。理想情况下,每次标记堆时,增长将为 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文