Instruments 能否告诉我在哪条线路上使用 ARC 进行了保留/释放调用?
Instruments 为我的对象提供了引用计数事件的精美细分,如下所示:
它还告诉我其中的内容发生调用的方法/函数。有什么办法可以查出哪些线路负责呼叫?
Instruments gives me a beautiful breakdown of the reference counting events for my objects like so:
It also tells me inside which method/function the calls occurred. Is there any way to find out which lines are responsible for the calls?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否分别运行了“泄漏”和“分配”工具? ARC通常意味着您只需要关注引用的“所有权”。另外,您是否在仪器中打开了右侧的“详细信息”视图?这通常会为您提供分配链中选定行的调用堆栈。
Have you run both "Leaks" and "Allocations" Instruments separately? ARC generally means you only need to watch the "ownership" of the references. Also, have you spun open the right hand "detail" view in Instruments? That usually gives you the stack of calls for a selected row in the allocation chain.