摘要:
#Time profile
程序时间性能分析和优化,查找可优化时间性能的地方,可对app中方法调度花费的时间进行追踪和分析
##使用UIAutomation准备
* 被测试app源代码
##分析步骤
1. 打开app工程
2. 在xcode 菜单栏中选择Product->Profile(或者⌘+I)
3. 选择Time Profiler->Profile
![](http://images.cnitblog.com/blog/147647/201409/180908158314763.png)
4. 如下图确保标号1中三个view按钮都选中,在Extended Detail中就可以看到对应方法的时间消耗
![](http://images.cnitblog.com/blog/147647/201409/180908365035246.png)
5. 在左边面板中选择Separate by Thread,Invert Call,Hide System Libraries,Show Obj-C Only几个选项,在中间面板中看 阅读全文