其他分享
首页 > 其他分享> > Andriod查看CPU信息

Andriod查看CPU信息

作者:互联网

cat /proc/cpuinfo | grep ^processor | wc -l
cat /sys/devices/system/cpu/online    
cat /sys/devices/system/cpu/present 
cho 1 > /sys/devices/system/cpu/cpu#/online
注: #为数字,标识哪个CPU核,如八核CPU, 则#取值为0~7
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq 
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
cat /sys/class/thermal/thermal_zone9/temp
42或者42000,代表约42度等
注: SoC系统往往有多个thermal sensor, 需要分辨监测CPU核温度的是哪些sensor,Qualcomm平台可参考/system/etc/thermal-engine.conf文件.
cat /sys/class/thermal/thermal_zone7/type
 

标签:查看,cpu,system,cat,sys,thermal,Andriod,CPU
来源: https://www.cnblogs.com/yuanqiangfei/p/16551550.html