[iOS]Instrument中callTree显示方法名
2017-03-16 本文已影响299人
溜萝卜
作为开发者,我们需要使用Instrument工具来检测内存泄漏、分析CPU占用情况。
我看了很多文章都告诉大家,在details选择calltree,勾选Hide System Libraries,这样会忽略掉系统方法,只留下你自己写的会泄漏的函数。
但是他们没说的是,有可能点击callTree之后,怎么也显示不了函数,而是显示内存地址。

解决方法是:
选中target -> buidSettings -> Debug Information Format ->选中 dwarf with dSYM File

改了之后,双击函数跳转到代码。
