adb 调试命令
来源:互联网 发布:windows xp企业版下载 编辑:程序博客网 时间:2024/05/21 05:17
ADB:Android Debug Bridge。
这里性能调试如下:
性能测试需要进行如下设置:
- 如果要让user模式能够进行root操作,需要更改(system/core/adb/adb.c)
- 将无用的log信息去掉,#define LOG_NIDEBUG 0
- 如果调试Web的用户体验,需要wifi已经能够正常工作
以下命令将设备进入性能模式
将DDR进入性能模式
adb shell echo 400000000 > /sys/class/kgsl/kgsl-3d0/gpuclkadb shell echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governoradb shell echo performance >/sys/class/devfreq/qcom,cpubw.30/governor(不同的设备可能会有差异)
读取交互模式cpu频率管理器参数
adb shell cat /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delayadb shell cat /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_loadadb shell cat /sys/devices/system/cpu/cpufreq/interactive/hispeed_freqadb shell cat /sys/devices/system/cpu/cpufreq/interactive/target_loadsadb shell cat /sys/devices/system/cpu/cpufreq/interactive/min_sample_timeadb shell cat /sys/devices/system/cpu/cpufreq/interactive/boostadb shell cat /sys/devices/system/cpu/cpufreq/interactive/boostpulse_durationadb shell cat /sys/devices/system/cpu/cpufreq/interactive/io_is_busyadb shell cat /sys/devices/system/cpu/cpufreq/interactive/timer_rateadb shell cat /sys/devices/system/cpu/cpufreq/interactive/timer_slack
禁止内核thermal
adb shellecho 0 > /sys/module/msm_thermal/core_control/enabled
通过无线adb调试
1. Connect a USB and verify that Wi-Fi is working on the device.– adb tcpip 5555– adb shell netcfg– <output> wlan0 UP 10.42.118.17/22 0x00001043 f0:25:b7:f5:02:81– adb connect 10.42.118.17# In Wi-Fi settings, click the Wi-Fi networkname to get the IP.2. Remove the USB and try adb devices.3. To end the session:– adb disconnect
GPU性能调试
将GPU进入性能模式
adb shell echo 0 > /sys/class/kgsl/kgsl-3d0/bus_splitadb shell echo performance > /sys/class/kgsl/kgsl-3d0/devfreq/governoradb shell echo 1 > /sys/class/kgsl/kgsl-3d0/force_bus_onadb shell echo 1 > /sys/class/kgsl/kgsl-3d0/force_rail_onadb shell echo 1 > /sys/class/kgsl/kgsl-3d0/force_clk_onadb shell echo 1000000 > /sys/class/kgsl/kgsl-3d0/idle_timer
通过adb查看每秒滚屏数
1. adb pull /system/build.prop2. Enable the properties debug.gr.calcfps = 1 and debug.gr.calcfps.period = 1 in the build.propfile and save the file.adb push build.prop /system/adb shell chmod 0644 /system/build.propadb shell syncadb shell reboot3. Enable the FPS calculation (and display the distribution of frame arrival times) by settingdebug.gr.calcfps = 2.4. Grep for FPS in logcat.检查设备layer的组成和层数
1. Get the adb shell dumpsys SurfaceFlinger log.2. Search for lines similar to those highlighted in the following log:numHwLayers=4, flags=00000000type | handle | hints | flags | tr | blend | format | source crop | frame name------------+----------+----------+----------+----+-------+----------+---------------------------+---------HWC | b71a1610 | 00000000 | 00000004 | 00 | 00100 | 00000002 | [ 160, 25, 480, 480] | [ 0, 25, 320, 480]com.android.systemui.ImageWallpaper
HWC – MDP composition
GLES – GPU composition
During transition, the log sometimes shows HWC and GLES, which is Mixed mode composition.
0 0
- adb调试桥命令
- adb 命令调试
- ADB调试命令大全
- adb调试实用命令
- adb 调试命令
- adb调试命令
- ADB 调试命令
- Android adb调试命令
- ADB调试命令
- adb调试相关命令
- adb 加快调试命令
- 常用adb调试命令
- Android 调试桥 ADB命令
- Android 无线调试 adb 命令
- <Android> 常用ADB调试命令
- Android adb调试命令集合
- 较详细的adb调试命令
- 常用的android adb 调试命令
- android key事件分发与焦点事件的传递
- tomcat源码阅读(一)——环境搭建
- setBackgroundResource设置背景导致padding失效
- 关于storyboard
- [LeetCode]419. Battleships in a Board
- adb 调试命令
- 解决MATLAB报错“错误使用 mtimesx_build”
- 左式堆的合并
- fragment中嵌套fragment时出现空白页问题解决
- 服务器微信支付接口笔记-(与app端对接)
- webx.xml装载顺序与PropertyPlaceholderConfigurer的应用
- 第三周作业:位运算
- 软件下载
- jquery mobile ajax