“发现泄密”但未通过 Instruments 详细显示
我正在尝试获取有关我当前正在开发的 iPad 应用程序中可能存在的泄漏的信息。通常,当 Instruments 发现泄漏时,泄漏部分的图表上会出现红色“峰值”,我能够在代码中获取有关该泄漏的信息。目前,Instruments 反而告诉我“发现泄漏”,但泄漏图上没有峰值,也没有显示任何细节。知道为什么会这样吗?
I am attempting to obtain information on possible leaks that exist in the iPad app I am currently developing. Typically when Instruments finds a leak, a red 'peak' appears on the graph within the leaks section and I am able to obtain information on that leak within my code. Currently, Instruments is instead telling me "Leaks Discovered", but there are no peaks on the leaks graph and no details are shown. Any idea on why that might be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定,除非有更多信息,但我通常使用“构建和分析”并修复它显示的所有泄漏,然后才转到仪器。尝试构建并分析以查看是否存在任何泄漏。如果您使用的是 Xcode 4,则只需在“产品”下进行“分析”即可。
Not sure unless there's more information but I generally use "Build and Analyze" and fix all the leaks it shows there and only then move on to Instruments. Try Build and Analyze to see if it shows any leaks there. If you're using Xcode 4, its just Analyze under Product.