I have a XCode project. I can build and debug with it. Is it possible for me to use Shark to do profiling of my application (e.g. find out what % of the time spent on what method? How many objects are created and destroyed? Where does each object created?
我有一个XCode项目。我可以用它来构建和调试。我是否可以使用Shark对我的应用程序进行分析(例如,找出在什么方法上花费了多少时间?创建和销毁了多少个对象?每个对象在哪里创建?
Thank you.
1 个解决方案
#1
Yes, you can run Shark on your application to get time profile information; see for example this Apple tutorial. dtrace is another option; but has a steeper learning curve.
是的,您可以在您的应用程序上运行Shark以获取时间配置文件信息;例如,参见Apple教程。 dtrace是另一种选择;但学习曲线更陡峭。
For more general profiling, like object allocation, you want to use Instruments (which is also part of Apple's developer tools suite).
对于更一般的分析,比如对象分配,您希望使用Instruments(它也是Apple开发人员工具套件的一部分)。
#1
Yes, you can run Shark on your application to get time profile information; see for example this Apple tutorial. dtrace is another option; but has a steeper learning curve.
是的,您可以在您的应用程序上运行Shark以获取时间配置文件信息;例如,参见Apple教程。 dtrace是另一种选择;但学习曲线更陡峭。
For more general profiling, like object allocation, you want to use Instruments (which is also part of Apple's developer tools suite).
对于更一般的分析,比如对象分配,您希望使用Instruments(它也是Apple开发人员工具套件的一部分)。