开发者

Using Memory Monitor on a single process on Instruments on OS X?

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, A开发者_如何学JAVApple 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:

Using Memory Monitor on a single process on Instruments on OS X?

Am I doing something wrong? How can I get Instruments to monitor the memory consumption of a single process?

Thanks in advance.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜