추적을 캡처하는 방법

1. 앱이 정상 상태일 때:

adb 루트

adb logcat –b 모두 > logcat_normal.txt

추적
adb 쉘
잡기 시작 " atrace -c -b 40960 gfx 입력 보기 webview wm am sm 오디오 비디오 카메라 hal res dalvik power pm ss sched irq freq 유휴 작업q 디스크 --async_start"

또는

adb 쉘 "atrace -c -b 40960 -t 10 gfx 입력 보기 webview wm am sm 오디오 비디오 카메라 hal res dalvik Binder_driver power pm ss sched freq 유휴 작업 디스크 --async_start"


크롤링 및 실행:
adb shell atrace --async_stop -z -c -o /sdcard/ atrace_normal . atrace "
마지막으로 추적을 제거 합니다
adb pull /sdcard/ atrace_normal . atrace atrace_normal . atrace

2. 멈춘 상태에서:

adb 루트

adb logcat –b 모두 > logcat_abnormal.txt

추적
adb 쉘
잡기 시작 " atrace -c -b 40960 gfx 입력 보기 webview wm am sm 오디오 비디오 카메라 hal res dalvik power pm ss sched irq freq 유휴 작업q 디스크 --async_start"

또는

adb 쉘 "atrace -c -b 40960 -t 10 gfx 입력 보기 webview wm am sm 오디오 비디오 카메라 hal res dalvik Binder_driver power pm ss sched freq 유휴 작업 디스크 --async_start"


크롤링 및 실행:
adb shell atrace --async_stop -z -c -o /sdcard/ atrace_abnormal . atrace "
마지막으로 추적을 제거 합니다
adb pull /sdcard/ atrace_normal . atrace atrace_abnormal . atrace

3. 다음 노드 상태를 확인합니다.

adb 쉘

고양이 프로세스/meminfo

고양이 /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
고양이 /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq 고양이 /
sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq 고양이
/sys/devices /시스템/cpu/cpu3/cpufreq/scaling_cur_freq

4. 다음 명령어를 실행하여 프로세스 관련 정보를 확인합니다.

adb 쉘 

맨 위

Supongo que te gusta

Origin blog.csdn.net/weixin_41028555/article/details/130583494
Recomendado
Clasificación