Instruments 能否告诉我在哪条线路上使用 ARC 进行了保留/释放调用?

发布于 2025-01-05 19:05:37 字数 177 浏览 4 评论 0原文

Instruments 为我的对象提供了引用计数事件的精美细分,如下所示:

instruments

它还告诉我其中的内容发生调用的方法/函数。有什么办法可以查出哪些线路负责呼叫?

Instruments gives me a beautiful breakdown of the reference counting events for my objects like so:

instruments

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

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

发布评论

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

评论(1

勿忘初心 2025-01-12 19:05:37

您是否分别运行了“泄漏”和“分配”工具? 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.

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