挂adb,使用logcat把log跑到文件中,并筛选出来
以下是挂adb
touch .base_profile
open .base_profile
export ANDROID_HOME=sdk路径
export PATH= {ANDROID_HOME}/tools
export PATH= {ANDROID_HOME}/platform-tools
source .bash_profile
查看已经链接的设备
adb devices
List of devices attached
007e3c872162a7d2 device
把日志保存到指定文件
adb logcat > /Users/lishuai/Documents/aaa.txt
结束日志保存
^C
从文件中筛选关键字出来
grep -rn CE_RenderThread /Users/lishuai/Documents/aaa.txt