如何在不从 xcode 构建/运行的情况下测试 iPhone 应用程序性能和网络使用情况
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8148228/
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
How can I test iPhone app performance and network usage without building/running from xcode
提问by Ramakrishna Guttha
I want to check the memory and network usage of an iPhone app that I don't have the source code for. How would I do this?
我想检查我没有源代码的 iPhone 应用程序的内存和网络使用情况。我该怎么做?
回答by Ramakrishna Guttha
Finally i could able to check the performance and real memory usage of the app. using the Instruments.Appunder Xcodeinstallation directory/Applications/Instruments.app.
最后,我可以检查应用程序的性能和实际内存使用情况。使用Instruments.App下Xcode的安装目录/应用/ Instruments.app。
Connect your device to Mac.
1. Launch Instruments. The application automatically creates a new trace document and prompts you to select a template.
2. Select the Activity Monitor template under IOS section and and click the Choose button. Instruments adds the Activity Monitor instrument to the trace document.
3. In the Default Target menu of the trace document, choose Target and select the App you want to target.
4. Click on the Record button. Targeted App will be started running on your device.
5. Wait a few seconds so that Instruments can gather some data. Now perform you are operations on the App.
6. Click the Stop button after your actions completed.
Thanks.
谢谢。
回答by Harish
@Dear Ramakrishna it is not possible to check the performance of application with out the source code of the app . If you have source than only you can check the performance of the app.By the help performance tool -> leak click you check the performance of the app. Thank you I think this will help you dear
@Dear Ramakrishna 如果没有应用程序的源代码,则无法检查应用程序的性能。如果您有源,则可以检查应用程序的性能。通过帮助性能工具-> 泄漏单击您检查应用程序的性能。谢谢,我想这会对你有帮助,亲爱的