在 OS X 上的 Instruments 上对单个进程使用内存监视器?
我在 OS X 上使用 Instruments 时遇到了一些问题。我正在尝试监控 OS X 上单个进程随时间的内存消耗情况。为此,我使用 Instruments 4.1 和“Memory Monitor”工具。
在 官方仪器文档,Apple 声明“此工具 [内存监视器] 可以对单个进程或系统上当前运行的所有进程进行操作。”但是,即使我将当前目标设置为特定进程,它似乎监视机器上的所有进程。
这是我当前设置的屏幕截图:
我做错了什么吗?如何让 Instruments 监控单个进程的内存消耗?
提前致谢。
I'm having some issues with Instruments on OS X. I'm trying to monitor the memory consumption of a single process over time on OS X. I'm using Instruments 4.1 for that, with the "Memory Monitor" instrument.
On the Official Instruments Documentation, Apple states that "This instrument [Memory Monitor] can operate on a single process or on all processes currently running on the system." However, even when I set the current target to a specific process, it seems to monitor all the processes on the machine.
Here's a screenshot of my current setup:
Am I doing something wrong? How can I get Instruments to monitor the memory consumption of a single process?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为你做错了什么。根据我的经验,各种监视器工具会监视所有进程,即使您告诉它们仅监视一个应用程序。
如果您想监控应用程序的内存消耗,请使用分配工具。所有分配类别的实时字节列将告诉您应用程序正在使用多少内存。
I don't think you're doing anything wrong. In my experience the various Monitor instruments monitor all processes even if you tell them to monitor only one application.
If you want to monitor your application's memory consumption, use the Allocations instrument. The Live Bytes column for the All Allocations category will tell you how much memory your application is using.