- 平台信息
adb shell dumpsys SurfaceFlinger | grep GLES
GLES: Imagination Technologies, PowerVR Rogue GE8300, OpenGL ES 3.2 build 1.15@6070602
- 负载信息
adb shell dumpsys gpu
Stable Game Driver: unsupported
Pre-release Game Driver: unsupported
Memory snapshot for GPU 0:
Global total: 362020864
Proc 474 total: 18446744072067452928
- 天玑2000及以前
# 频率档位
adb shell "cat /proc/gpufreq/gpufreq_opp_dump"
[0] freq = 660000, volt = 80000, vsram = 87500, gpufreq_power = 726
[1] freq = 500000, volt = 70000, vsram = 87500, gpufreq_power = 419
[2] freq = 390000, volt = 65000, vsram = 87500, gpufreq_power = 286
# 固定频率
adb shell "echo 660000 > /proc/gpufreq/gpufreq_opp_freq"
# 当前频率、档位、负载
$ adb shell "grep -E 'g_cur_opp_idx|real freq|gpu_loading' /proc/gpufreq/gpufreq_var_dump"
g_cur_opp_idx = 2, g_cur_opp_cond_idx = 2
real freq = 390000, real volt = 0, real vsram_volt = 87500
gpu_loading = 0
- 天玑2000以后
# 频率档位
adb shell "cat /proc/gpufreqv2/stack_working_opp_table"
adb shell "cat /proc/gpufreqv2/gpu_working_opp_table"
# 固定频率
adb shell "echo 0 > /proc/gpufreqv2/fix_target_opp_index" # -1 无限制,0 最高频
# 当前频率
adb shell "grep -e STACK-OPP /proc/gpufreqv2/gpufreq_status"