ftrace的一些操作方法

以MTK爲例

aee 只是單純拷貝 /sys/kernel/debug/tracing/trace   copy_file(aee_dir, "SYS_FTRACE", "/sys/kernel/debug/tracing/trace");

/sys/kernel/debug/tracing/tracing_on  寫入 1 or 0  , 也就是開關 trace 動作

/sys/kernel/debug/tracing/buffer_size_kb  buffer大小

adb shell atrace -b 10240 --async_start gfx input view webview wm am sm audio video camera hal res dalvik rs bionic power pm ss sched freq idle load memreclaim binder_driver binder_lock
adb shell atrace -b 10240 -z -o /data/local/tmp/trace_origin --async_stop gfx input view webview wm am sm audio video camera hal res dalvik rs bionic power pm ss sched freq idle load memreclaim binder_driver binder_lock
第一條開始,開始跑monkey時就執行
第二條停止

錄屏

adb shell screenrecord --size 1920x1080 --bugreport  /sdcard/demo.mp4

//切換不同用戶名
ssh [email protected]

//遠程拷貝文件
scp [email protected]:/home/user2/sf_user2//*.*  ./


adb shell settings put system screen_off_timeout  5 設置screen_off_timeout 值爲5
其中的system可以根據設置的具體情況改成get global或者get secure

repo forall -c git clean -fd && repo forall -c git reset --hard HEAD && repo sync -j24


查看進程$ ps -T -p <pid>

查查看指定進程佔用CPU情況:top -o ARGS,%cpu|grep system_server

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章