systrace快速启动环境配置
2020-12-28 本文已影响0人
旭仔_2e16
1.确保python环境已配置
echo $HOME
touch .bash_profile
open -e .bash_profile
在打开的bash_profile文件中输入
export systrace=/Users/xxx/Library/Android/sdk/platform-tools/systrace/systrace.py
实际目录已自己的为准。
最后中断中输入 source .bash_profiler进行保存。
3.启动systrace
终端中输入:python $systrace。控制台打印Starting tracing (stop with enter)表示成功。