Instruments:Time Profile的使用(查看Ap
2023-03-21 本文已影响0人
CicadaJZ
要使用Instruments里的Time Profile去分析程序的运行情况,首先执行Profile,并等待任务结束。
![](https://img.haomeiwen.com/i9689993/a0539bae10e68cb9.png)
任务结束后会自动打开Instruments
![](https://img.haomeiwen.com/i9689993/d4c46c2613b505bb.png)
选择Time Profile,打开
![](https://img.haomeiwen.com/i9689993/78c2c8629d2a0f31.png)
依次选择设备->App->开始录制,每次点击开始录制后App都会重新运行。
选择对应的进程,选择App Lifecycle,可以查看APP的启动耗时
![](https://img.haomeiwen.com/i9689993/d5fe3f158dea77ae.png)
要使用Instruments里的Time Profile去分析程序的运行情况,首先执行Profile,并等待任务结束。
任务结束后会自动打开Instruments
依次选择设备->App->开始录制,每次点击开始录制后App都会重新运行。
选择对应的进程,选择App Lifecycle,可以查看APP的启动耗时