ios - iOS 的分配工具 : compare memory of two snapshots

标签 ios memory-management xcode-instruments

在我的情况下,我连续进入一个场景,然后退出等等...所以 Live bytes 数量在重新进入场景时必须相同,但每次进入时增加 3Mb。

我想找到之前场景留下的内存。内存泄漏工具显示没有泄漏。 如何比较内存的两个“快照”以突出分配中的差异?

上一场景快照: enter image description here

重新进入后: enter image description here

最佳答案

使用 Heapshot 分析方法

这是 bbum 的一篇很棒的博客条目:When is a Leak not a Leak? Using Heapshot Analysis to Find Undesirable Memory Growth

关于ios - iOS 的分配工具 : compare memory of two snapshots,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11967243/

相关文章:

java内存不足问题

java - 不关闭 stringwriter 会导致泄漏吗?

xcode - “Allocated Prior to Attach” 在 Xcode 仪器中是什么意思?

ios - 使用命令行的 UIAutomation 不起作用

crash - xcode 工具导致应用程序崩溃

ios - 数据未显示在 UITableView 中

ios - Swift - 加载搜索结果时的并发问题。我加载图像,发送请求,但请求为时已晚

ios - 在给定字符串的数组中查找匹配项?

ios - 错误: "Cannot assign a value of type String: UIColor? to a value of type String: AnyObject!"

objective-c - 我如何解决 iphone 中 imageWithContentsoffile 函数的内存问题