TimeProfile
来源:互联网 发布:win7 445端口入侵教程 编辑:程序博客网 时间:2024/05/19 01:12
1、设置Xcode
如果想要在TimeProfile中直观的查看方法耗时,需要对Xcode进行设置
在Xcode->Build Setting->Debug Information Format中设置选项为:DWARF with dSYM File
注意:不设置该选项的话,在TimeProfile中就只能看到一堆线程
2、设置TimeProfile
在TimeProfile中,右侧面板有三个检查器选中中间那个setting,勾选Separate by Thread和Hide System Libraries
可以在Symbol Name 查看哪个方法占用的内存和耗时比较多了,然后做出优化。
0 0