什么是iPhone的内存监视器?

时间:2020-12-23 02:40:05

I've heard a lot of people talk of a tool called Memory Monitor as a better way to examine the memory usage of an iPhone app as Object Alloc doesn't give an accurate picture of how much memory an app is actually using.

我听说很多人都在谈论一种名为Memory Monitor的工具,作为检查iPhone应用程序内存使用情况的更好方法,因为Object Alloc无法准确了解应用程序实际使用的内存量。

How can I launch Memory Monitor? I can't find it in instruments. Is it a part of a separate tool I have to download?

我该如何启动Memory Monitor?我在仪器中找不到它。它是我必须下载的单独工具的一部分吗?

Thanks! Nick.

3 个解决方案

#1


The "Leaks" Instruments template also monitors overall memory usage (and more.) The Activity Monitor application (/Applications/Utilities/Activity Monitor.app) may the be illusive "Memory Monitor." It has indications of real and virtual memory usage.

“泄漏”仪器模板还监视整体内存使用情况(等等)。活动监视器应用程序(/ Applications / Utilities / Activity Monitor.app)可能是虚幻的“内存监视器”。它具有实际和虚拟内存使用的指示。

I'm not aware of any other tool explicitly called "Memory Monitor." If such an application exists, I can't imagine what other data it would obtain that Activity Monitor and Instruments wouldn't already be considering.

我不知道任何其他明确称为“内存监视器”的工具。如果存在这样的应用程序,我无法想象活动监视器和仪器将不会考虑的其他数据。

#2


Memory Monitor is just one of the tools in Instruments. After you start your Instruments run (Xcode: Run > Start With Performance Tool > Leaks), click Library in the instruments window toolbar and drag Memory Monitor into the main window.

Memory Monitor只是Instruments中的工具之一。启动仪器运行后(Xcode:Run> Start With Performance Tool> Leaks),单击仪器窗口工具栏中的Library并将Memory Monitor拖动到主窗口中。

Memory Monitor is significant because it shows TOTAL memory usage by your app, whether or not that usage is reflected in ObjectAlloc.

内存监视器非常重要,因为它显示了应用程序的总内存使用量,无论该用法是否反映在ObjectAlloc中。

The most important bar in Memory Monitor seems to be the last one, Total Memory Used. If this one keeps climbing, eventually your app will be toast. Drag the triangle control through the time bar (top of window) to get numeric value for any point in time.

内存监视器中最重要的条似乎是最后一个,使用的总内存。如果这个继续攀爬,最终你的应用程序将是吐司。将三角形控件拖动到时间栏(窗口顶部)以获取任何时间点的数值。

#3


If you're looking to help locate leaks in your code, try: http://clang.llvm.org/StaticAnalysis.html

如果您希望帮助查找代码中的泄漏,请尝试:http://clang.llvm.org/StaticAnalysis.html

Best Regards Richard L. Burton III

最诚挚的问候Richard L. Burton III

#1


The "Leaks" Instruments template also monitors overall memory usage (and more.) The Activity Monitor application (/Applications/Utilities/Activity Monitor.app) may the be illusive "Memory Monitor." It has indications of real and virtual memory usage.

“泄漏”仪器模板还监视整体内存使用情况(等等)。活动监视器应用程序(/ Applications / Utilities / Activity Monitor.app)可能是虚幻的“内存监视器”。它具有实际和虚拟内存使用的指示。

I'm not aware of any other tool explicitly called "Memory Monitor." If such an application exists, I can't imagine what other data it would obtain that Activity Monitor and Instruments wouldn't already be considering.

我不知道任何其他明确称为“内存监视器”的工具。如果存在这样的应用程序,我无法想象活动监视器和仪器将不会考虑的其他数据。

#2


Memory Monitor is just one of the tools in Instruments. After you start your Instruments run (Xcode: Run > Start With Performance Tool > Leaks), click Library in the instruments window toolbar and drag Memory Monitor into the main window.

Memory Monitor只是Instruments中的工具之一。启动仪器运行后(Xcode:Run> Start With Performance Tool> Leaks),单击仪器窗口工具栏中的Library并将Memory Monitor拖动到主窗口中。

Memory Monitor is significant because it shows TOTAL memory usage by your app, whether or not that usage is reflected in ObjectAlloc.

内存监视器非常重要,因为它显示了应用程序的总内存使用量,无论该用法是否反映在ObjectAlloc中。

The most important bar in Memory Monitor seems to be the last one, Total Memory Used. If this one keeps climbing, eventually your app will be toast. Drag the triangle control through the time bar (top of window) to get numeric value for any point in time.

内存监视器中最重要的条似乎是最后一个,使用的总内存。如果这个继续攀爬,最终你的应用程序将是吐司。将三角形控件拖动到时间栏(窗口顶部)以获取任何时间点的数值。

#3


If you're looking to help locate leaks in your code, try: http://clang.llvm.org/StaticAnalysis.html

如果您希望帮助查找代码中的泄漏,请尝试:http://clang.llvm.org/StaticAnalysis.html

Best Regards Richard L. Burton III

最诚挚的问候Richard L. Burton III