0

In the following image (taken from Memory Leaks Instrument in Xcode), you will notice a memory leak (the one with green border) in the timeline, how do i know which leaked object(s) that caused this red vertical line (the leak) ? if it's not possible to determine which object is the responsible for the leak, then what's the benefit of displaying these red vertical lines in the timeline ?

thank you so much in advance.

the image:

enter image description here

4

1 回答 1

2

红色垂直线表示泄漏增加。它们不是实时的(因此它们不能是一对一的)。看到左边的“快照间隔”部分了吗?这就是 Instruments 寻找新泄漏的频率。如果它找到了一些,它会在你的时间线中放置一个红色条。要弄清楚哪些是新的,请在时间轴上检查之前和之后。

于 2012-06-11T06:55:42.947 回答