基于logcat日志查找卡顿
查找卡顿
如果app卡顿会自己喊出来。说自己掉了多少帧。使用下面的日志赛选可以查看。
Choreographer: Skipped \d+ frames查找应用
上面找出来的是pid 也就是进程id。需要通过进程id 确定应用名。使用下面的日志赛选。
ActivityManager: Start proc使用perffeto
查询命令
selectpid, name from process where pid=3379如果app卡顿会自己喊出来。说自己掉了多少帧。使用下面的日志赛选可以查看。
Choreographer: Skipped \d+ frames上面找出来的是pid 也就是进程id。需要通过进程id 确定应用名。使用下面的日志赛选。
ActivityManager: Start proc查询命令
selectpid, name from process where pid=3379