xCode 4 中的内存监视器 - iPhone

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5296516/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:29:19  来源:igfitidea点击:

Memory Monitor in xCode 4 - iPhone

iphonexcodememoryandroid-activitymonitor

提问by Andrei Neacsu

How can I monitor the memory used on my iPhone in xCode 4?

如何在 xCode 4 中监控 iPhone 上使用的内存?

I need a tool like the Activity Monitor on previous versions of xCode. Or any other analysis tools?

我需要像以前版本的 xCode 上的活动监视器这样的工具。或者其他分析工具?

回答by AechoLiu

enter image description here

在此处输入图片说明

Product -> Profile, and then the Instruments will be waken up.

Product -> Profile,然后 Instruments 会被唤醒。

回答by Roozbeh Zabihollahi

Thanks to Toro, I am going to complete his answer for XCode 4.6:

感谢 Toro,我将完成他对 XCode 4.6 的回答:

First Enable profiler for your app

首先为您的应用启用分析器

Profile Menu

个人资料菜单

Then Start Instruments tool

然后启动仪器工具

Instruments Menu

仪器菜单