仪器分配工具在运行中停止

发布于 2024-11-09 18:17:43 字数 355 浏览 1 评论 0原文

我设置了 Instruments 来加载分配模块。我拿起我的手机,然后选择我的应用程序作为目标。我点击“录制”按钮,我的应用程序启动,并且 Instruments 开始正常录制。

但是,当我输入代码的某个部分时,仪器将断开连接。监视器和计时器停止,录制按钮变灰。在手机上,我的应用程序继续愉快地运行。有时 Instruments 会给出错误消息“无法启动 Instruments 守护程序”,但不是 100%。

这部分代码并没有做任何与已经运行的部分有很大不同的事情。它正在进入一个新区域,因此会分配大量新内存并生成一些新线程。我确实相信我泄漏了一些分配的内存(当我离开该部分时),我希望使用 Instruments 来帮助我跟踪哪些分配。有人知道我做错了什么吗?

I set up Instruments to load the Allocation module. I pick out my phone, then select my app as the target. I hit the 'record' button and my app starts up and Instruments starts recording fine.

However when I enter a certain section of my code, Instruments will disconnect. The monitor and timer just stop and the record button grays out. On the phone my app continues to run merrily. Sometimes Instruments gives the error message 'Failed to start instruments daemon' but it is not 100%.

This section of the code doesn't do anything terribly different from the sections that have already run. It is entering a new area so a lot of new memory is allocated and some new threads are spawned. I do believe I am leaking some of the memory allocated (when i leave the section) and I am hoping to use Instruments to help me track which allocation. Anyone know what I am doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文