iOS性能监测Instruments的使用
2017-02-27 本文已影响107人
朵朵刺刺
iOS性能监测Instruments的使用
1.启动程序点击Show the Debug navigator ->Memory ->Profile in instruments ->Transfer

这样instruments的Leak就运行起来。检测内存泄露需要我们操作app

出现红叉的时候 说明有内存泄露 点击红叉

选择Call Tree 在勾选

Invert Call Tree和Hide System Libraries后双击内存泄露的位置就可以修改代码了