仪器如何自动停止工作?
我尝试通过 Instruments 监控分配情况。
但是,当我跑到某个点并发送一些 jabber 消息时,仪器会自动停止工作。
我想知道它怎么停止。
应用程序中是否有任何代码可以停止仪器?
I try to monitor the allocation through Instruments.
However, when I run to a point, sending some jabber msg, the Instruments stop working automatically.
I wonder how does it stop.
Is there any code in an app could stop the Instruments?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也遇到过这个问题。我得到的答案是:如果内存使用率太高,仪器确实会停止。打开分配,然后查看内存使用情况。在我的应用程序中,我正在调用 Web 服务,该服务正在下载一些大量数据,因此我的应用程序的内存消耗将达到 60-70 MB(对于 iPad 应用程序)。这导致仪器崩溃。
所以我不得不进行一些内存修复。我能够将其减少到 12 MB 左右。然后仪器恢复正常工作。希望有帮助。
I have faced this problem too. The answer i got was: Instruments does stop if your memory usage is too high. Turn on Allocations, and see the memory usage. In my app, I was calling web services, which were downloading some heavy data, because of which my app's memory consumption would go unto like, 60-70 MB, (for an iPad app). This was causing instruments to crash.
So I had to put some memory fixes. I was able to reduce it to around 12 MB. And then Instruments resumed to work fine. Hope it helps.
也可能像 @Cory Kilger 所建议的那样,并且该应用程序正在崩溃。
尝试在仪器之外运行它。
祝你好运 :)
It could also be as @Cory Kilger suggests and the app is crashing.
Try running it outside of instruments.
Good luck :)