android獲取cpu
Ⅰ Android怎樣獲取CPU使用率
直接按DEL+CTRL+ALT鍵,調出電腦任務管理器,查看性能,就可以看到有CPU佔用率,核心數佔用率的顯示。
或者安裝常見的魯大師軟體,在溫度欄下,也可以直接看到CPU的佔用率。
Ⅱ 怎麼獲得CPU的信息
Android獲取cpu和內存信息、網址的代碼如下:
/** 獲取用戶硬體信息 */
public static String getMobileInfo() {
//StringBuffer sb = new StringBuffer();
JSONObject mbInfo = new JSONObject();
//通過反射獲取用戶硬體信息
try {
Field[] fields = Build.class.getDeclaredFields();
for (Field field : fields) {
// 暴力反射,獲取私有信息
field.setAccessible(true);
String name = field.getName();
String value = field.get(null).toString();
//sb.append(name + "=" + value);
//sb.append("\n");
mbInfo.put(name, value);
}
} catch (Exception e) {
e.printStackTrace();
}
//return sb.toString();
return mbInfo.toString();
}
static public String getCpuString(){
if(Build.CPU_ABI.equalsIgnoreCase("x86")){
return "Intel";
}
String strInfo = "";
try
{
byte[] bs = new byte[1024];
RandomAccessFile reader = new RandomAccessFile("/proc/cpuinfo", "r");
reader.read(bs);
String ret = new String(bs);
int index = ret.indexOf(0);
if(index != -1) {
strInfo = ret.substring(0, index);
} else {
strInfo = ret;
}
}
catch (IOException ex){
ex.printStackTrace();
}
return strInfo;
}
static public String getCpuType(){
String strInfo = getCpuString();
String strType = null;
if (strInfo.contains("ARMv5")) {
strType = "armv5";
} else if (strInfo.contains("ARMv6")) {
strType = "armv6";
} else if (strInfo.contains("ARMv7")) {
strType = "armv7";
} else if (strInfo.contains("Intel")){
strType = "x86";
}else{
strType = "unknown";
return strType;
}
if (strInfo.contains("neon")) {
strType += "_neon";
}else if (strInfo.contains("vfpv3")) {
strType += "_vfpv3";
}else if (strInfo.contains(" vfp")) {
strType += "_vfp";
}else{
strType += "_none";
}
return strType;
}
/**
* @hide
* @return
*/
public static CPUInfo getCPUInfo() {
String strInfo = null;
try
{
byte[] bs = new byte[1024];
RandomAccessFile reader = new RandomAccessFile("/proc/cpuinfo", "r");
reader.read(bs);
String ret = new String(bs);
int index = ret.indexOf(0);
if(index != -1) {
strInfo = ret.substring(0, index);
} else {
strInfo = ret;
}
}
catch (IOException ex)
{
strInfo = "";
ex.printStackTrace();
}
CPUInfo info = parseCPUInfo(strInfo);
info.mCPUMaxFreq = getMaxCpuFreq();
return info;
}
private final static String kCpuInfoMaxFreqFilePath = "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq";
private static int getMaxCpuFreq() {
int result = 0;
FileReader fr = null;
BufferedReader br = null;
try {
fr = new FileReader(kCpuInfoMaxFreqFilePath);
br = new BufferedReader(fr);
String text = br.readLine();
if (text != null) {
result = Integer.parseInt(text.trim());
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (fr != null)
try {
fr.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (br != null)
try {
br.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return result;
}
public static class CPUInfo{
public CPUInfo(){
}
public static final int CPU_TYPE_UNKNOWN = 0x00000000;
public static final int CPU_TYPE_ARMV5TE = 0x00000001;
public static final int CPU_TYPE_ARMV6 = 0x00000010;
public static final int CPU_TYPE_ARMV7 = 0x00000100;
public static final int CPU_FEATURE_UNKNOWS = 0x00000000;
public static final int CPU_FEATURE_VFP = 0x00000001;
public static final int CPU_FEATURE_VFPV3 = 0x00000010;
public static final int CPU_FEATURE_NEON = 0x00000100;
public int mCPUType;
public int mCPUCount;
public int mCPUFeature;
public double mBogoMips;
public long mCPUMaxFreq;
}
/**
*
* @param cpuInfo
* @return
* @hide
*/
private static CPUInfo parseCPUInfo(String cpuInfo) {
if (cpuInfo == null || "".equals(cpuInfo)) {
return null;
}
CPUInfo ci = new CPUInfo();
ci.mCPUType = CPUInfo.CPU_TYPE_UNKNOWN;
ci.mCPUFeature = CPUInfo.CPU_FEATURE_UNKNOWS;
ci.mCPUCount = 1;
ci.mBogoMips = 0;
if (cpuInfo.contains("ARMv5")) {
ci.mCPUType = CPUInfo.CPU_TYPE_ARMV5TE;
} else if (cpuInfo.contains("ARMv6")) {
ci.mCPUType = CPUInfo.CPU_TYPE_ARMV6;
} else if (cpuInfo.contains("ARMv7")) {
ci.mCPUType = CPUInfo.CPU_TYPE_ARMV7;
}
if (cpuInfo.contains("neon")) {
ci.mCPUFeature |= CPUInfo.CPU_FEATURE_NEON;
}
if (cpuInfo.contains("vfpv3")) {
ci.mCPUFeature |= CPUInfo.CPU_FEATURE_VFPV3;
}
if (cpuInfo.contains(" vfp")) {
ci.mCPUFeature |= CPUInfo.CPU_FEATURE_VFP;
}
String[] items = cpuInfo.split("\n");
for (String item : items) {
if (item.contains("CPU variant")) {
int index = item.indexOf(": ");
if (index >= 0) {
String value = item.substring(index + 2);
try {
ci.mCPUCount = Integer.decode(value);
ci.mCPUCount = ci.mCPUCount == 0 ? 1 : ci.mCPUCount;
} catch (NumberFormatException e) {
ci.mCPUCount = 1;
}
}
} else if (item.contains("BogoMIPS")) {
int index = item.indexOf(": ");
if (index >= 0) {
String value = item.substring(index + 2);
}
}
}
return ci;
}
/**
* 獲取設備內存大小值
* @return 內存大小,單位MB
*/
public static long getTotalMemory() {
String str1 = "/proc/meminfo";
String str2;
String[] arrayOfString;
long initial_memory = 0;
try {
FileReader localFileReader = new FileReader(str1);
BufferedReader localBufferedReader = new BufferedReader(localFileReader, 8192);
str2 = localBufferedReader.readLine();
if (str2 != null) {
arrayOfString = str2.split("\\s+");
initial_memory = Integer.valueOf(arrayOfString[1]).intValue()/1024;
}
localBufferedReader.close();
return initial_memory;
}
catch (IOException e)
{
return -1;
}
}
/**
* @hide
* @return
*/
public CPUInfo getCPUInfo() {
String strInfo = null;
try
{
byte[] bs = new byte[1024];
RandomAccessFile reader = new RandomAccessFile("/proc/cpuinfo", "r");
reader.read(bs);
String ret = new String(bs);
int index = ret.indexOf(0);
if(index != -1) {
strInfo = ret.substring(0, index);
} else {
strInfo = ret;
}
}
catch (IOException ex)
{
strInfo = "";
ex.printStackTrace();
}
CPUInfo info = parseCPUInfo(strInfo);
info.mCPUMaxFreq = getMaxCpuFreq();
return info;
}
/**
* 獲取android CPU類型
*
* @return String CPU類型
*/
public static String getCpuModel(){
String cpu_model = "";
CPUInfo in = getCPUInfo();
if ((in.mCPUType & CPUInfo.CPU_TYPE_ARMV5TE) == CPUInfo.CPU_TYPE_ARMV5TE)
cpu_model="armv5";
else if ((in.mCPUType & CPUInfo.CPU_TYPE_ARMV6) == CPUInfo.CPU_TYPE_ARMV6)
cpu_model="armv6";
else if ((in.mCPUType & CPUInfo.CPU_TYPE_ARMV7) == CPUInfo.CPU_TYPE_ARMV7)
cpu_model="armv7";
else
cpu_model="unknown";
return cpu_model;
}
/**
* 獲取android CPU特性
*
* @return String CPU特性
*/
public static String getCpuFeature(){
String cpu_feature = "";
CPUInfo in = getCPUInfo();
if ((in.mCPUFeature & CPUInfo.CPU_FEATURE_NEON ) == CPUInfo.CPU_FEATURE_NEON)
cpu_feature="neon";
else if ((in.mCPUFeature & CPUInfo.CPU_FEATURE_VFP ) == CPUInfo.CPU_FEATURE_VFP)
cpu_feature="vfp";
else if ((in.mCPUFeature & CPUInfo.CPU_FEATURE_VFPV3 ) == CPUInfo.CPU_FEATURE_VFPV3)
cpu_feature="vfpv3";
else
cpu_feature="unknown";
return cpu_feature;
}
/**
* 獲取ip地址
*
* @param mContext Context
* @return ip地址字元串
*/
public static String getIpAddress(Context mContext) {
String ipAddress = null;
try {
for (Enumeration en = NetworkInterface
.getNetworkInterfaces(); en.hasMoreElements();) {
NetworkInterface intf = en.nextElement();
for (Enumeration enumIpAddr = intf
.getInetAddresses(); enumIpAddr.hasMoreElements();) {
InetAddress inetAddress = enumIpAddr.nextElement();
if (!inetAddress.isLoopbackAddress()) {
ipAddress = inetAddress.getHostAddress().toString();
}
}
}
} catch (SocketException ex) {
return null;
}
if (DEBUG) {
Log.d(TAG, "ip address:" + ipAddress);
}
return ipAddress;
}
Ⅲ Android手機的CPU大約在哪個位置
處理器一般在手機的上部,一般都是BGA在手機主板上面(就是焊在手機主板上面)。
把手機拆開也是不能把手機處理器拿下來的,想拿下來必須用專業的熱風槍把它吹下來,而且要注意保護主板上面的其它元器件。
型號比較
1、德州儀器
優點:低頻高能且耗電量較少,高端智能機必備CPU。
缺點:價格不菲,對應的手機價格也很高,OMAP3系列GPU性能不高,但OMAP4系列有了明顯改善,數據處理能力較弱。
2、INTEL
優點:CPU主頻高,速度快。
缺點:耗電、每頻率性能較低。
3、高通
優點:主頻高,數據處理性能表現出色,擁有最廣泛的產品路線圖,支持包括智能手機、平板電腦、智能電視等各類終端,可以支持所有主流移動操作系統,支持3G/4G網路制式。
缺點:圖形處理能力較弱,功耗較大。
4、三星
優點:耗電量低、三星蜂鳥S5PC110單核最強,DSP搭配較好,GPU性能較強。
缺點:三星獵戶雙核發熱問題大,搭載MALI400GPU構圖單一,兼容性不強。
5、Marvell
優點:很好繼承和發揮了PXA的性能。
缺點:功耗大。
6、英偉達
優點:最早上市的雙核CPU,搭載的Geforce ULP面積小,性能強,功耗較低。
缺點:Tegra2因為功耗問題去掉了NEON,導致視頻解碼問題大,支持硬解格式少。
7.華為
優點:是2012年業界體積最小的四核A9架構處理器。他是一款高性能CPU,是華為自主設計。
缺點:兼容性不好。
以上參考自網路-手機CPU
Ⅳ Android上如何查看CPU和內存信息
1.進入adb shell
2.輸入top -m 10 -s cpu 可查看佔用cpu最高的前10個程序(-t 顯示進程名稱,-s 按指定行排序,-n 在退出前刷新幾次,-d 刷新間隔,-m 顯示最大數量)
參數含義:
PID:progressidentification,應用程序ID
S: 進程的狀態,其中S表示休眠,R表示正在運行,Z表示僵死狀態,N表示該進程優先值是負數。
#THR:程序當前所用的線程數
VSS:Virtual Set Size虛擬耗用內存(包含共享庫佔用的內存)
RSS: Resident Set Size實際使用物理內存(包含共享庫佔用的內存)
PCY:不知道什麼意思,期待解答
UID:UserIdentification,用戶身份ID
Name:應用程序名稱
查看內存消耗
1.進入adb shell ;
2.輸入mpsys meminfo(PID或者是包名)
Ⅳ android平板電腦怎麼看CPU
安卓平板,可通過下載硬體檢測軟體(比如安卓的安兔兔和Win系統下的魯大師)來獲取平板電腦的CPU配置等硬體信息,以及具體型號、系統版本號等信息,更有檢測真偽、性能跑分等多種功能。
Ⅵ android怎麼檢測 cpu 硬體信息的
教你查看Android手機真正的硬體信息 那些安兔兔還有360什麼的裡面看到的硬體信息都是可以被奸商修改的,就我都可以把我的內存信息修改成3GB的RAM,所以那裡看到的東西不一定就是真實的,由於Android是基於Linux內核的,所以手機的很多信息都能夠在內核信息裡面看到,內核的一些信息的手機的/proc文件夾裡面。大家可以自行查看 /proc/cpuinfo這個文件是手機的cpu硬體信息,大家可以安裝一個「終端模擬器」來輸入如下指令來查看cpu信息,在終端裡面輸入 cat/proc/cpuinfo就會顯示cpu的相關信息了。
Ⅶ android 讀取cpu型號
現在手機和設備基本上系統設置裡面都有配置信息,不行的話,你可以下載一個安兔兔看一下。
Ⅷ Android怎麼獲取cpu信息
Android獲取cpu和內存信息、網址的代碼如下:
/** 獲取用戶硬體信息 */
public static String getMobileInfo() {
//StringBuffer sb = new StringBuffer();
JSONObject mbInfo = new JSONObject();
//通過反射獲取用戶硬體信息
try {
Field[] fields = Build.class.getDeclaredFields();
for (Field field : fields) {
// 暴力反射,獲取私有信息
field.setAccessible(true);
String name = field.getName();
String value = field.get(null).toString();
//sb.append(name + "=" + value);
//sb.append("\n");
mbInfo.put(name, value);
}
} catch (Exception e) {
e.printStackTrace();
}
//return sb.toString();
return mbInfo.toString();
}
static public String getCpuString(){
if(Build.CPU_ABI.equalsIgnoreCase("x86")){
return "Intel";
}
String strInfo = "";
try
{
byte[] bs = new byte[1024];
RandomAccessFile reader = new RandomAccessFile("/proc/cpuinfo", "r");
reader.read(bs);
String ret = new String(bs);
int index = ret.indexOf(0);
if(index != -1) {
strInfo = ret.substring(0, index);
} else {
strInfo = ret;
}
}
catch (IOException ex){
ex.printStackTrace();
}
return strInfo;
}
static public String getCpuType(){
String strInfo = getCpuString();
String strType = null;
if (strInfo.contains("ARMv5")) {
strType = "armv5";
} else if (strInfo.contains("ARMv6")) {
strType = "armv6";
} else if (strInfo.contains("ARMv7")) {
strType = "armv7";
} else if (strInfo.contains("Intel")){
strType = "x86";
}else{
strType = "unknown";
return strType;
}
if (strInfo.contains("neon")) {
strType += "_neon";
}else if (strInfo.contains("vfpv3")) {
strType += "_vfpv3";
}else if (strInfo.contains(" vfp")) {
strType += "_vfp";
}else{
strType += "_none";
}
return strType;
}
/**
* @hide
* @return
*/
public static CPUInfo getCPUInfo() {
String strInfo = null;
try
{
byte[] bs = new byte[1024];
RandomAccessFile reader = new RandomAccessFile("/proc/cpuinfo", "r");
reader.read(bs);
String ret = new String(bs);
int index = ret.indexOf(0);
if(index != -1) {
strInfo = ret.substring(0, index);
} else {
strInfo = ret;
}
}
catch (IOException ex)
{
strInfo = "";
ex.printStackTrace();
}
CPUInfo info = parseCPUInfo(strInfo);
info.mCPUMaxFreq = getMaxCpuFreq();
return info;
}
private final static String kCpuInfoMaxFreqFilePath = "/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq";
private static int getMaxCpuFreq() {
int result = 0;
FileReader fr = null;
BufferedReader br = null;
try {
fr = new FileReader(kCpuInfoMaxFreqFilePath);
br = new BufferedReader(fr);
String text = br.readLine();
if (text != null) {
result = Integer.parseInt(text.trim());
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (fr != null)
try {
fr.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if (br != null)
try {
br.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return result;
}
public static class CPUInfo{
public CPUInfo(){
}
public static final int CPU_TYPE_UNKNOWN = 0x00000000;
public static final int CPU_TYPE_ARMV5TE = 0x00000001;
public static final int CPU_TYPE_ARMV6 = 0x00000010;
public static final int CPU_TYPE_ARMV7 = 0x00000100;
public static final int CPU_FEATURE_UNKNOWS = 0x00000000;
public static final int CPU_FEATURE_VFP = 0x00000001;
public static final int CPU_FEATURE_VFPV3 = 0x00000010;
public static final int CPU_FEATURE_NEON = 0x00000100;
public int mCPUType;
public int mCPUCount;
public int mCPUFeature;
public double mBogoMips;
public long mCPUMaxFreq;
}
/**
*
* @param cpuInfo
* @return
* @hide
*/
private static CPUInfo parseCPUInfo(String cpuInfo) {
if (cpuInfo == null || "".equals(cpuInfo)) {
return null;
}
CPUInfo ci = new CPUInfo();
ci.mCPUType = CPUInfo.CPU_TYPE_UNKNOWN;
ci.mCPUFeature = CPUInfo.CPU_FEATURE_UNKNOWS;
ci.mCPUCount = 1;
ci.mBogoMips = 0;
if (cpuInfo.contains("ARMv5")) {
ci.mCPUType = CPUInfo.CPU_TYPE_ARMV5TE;
} else if (cpuInfo.contains("ARMv6")) {
ci.mCPUType = CPUInfo.CPU_TYPE_ARMV6;
} else if (cpuInfo.contains("ARMv7")) {
ci.mCPUType = CPUInfo.CPU_TYPE_ARMV7;
}
if (cpuInfo.contains("neon")) {
ci.mCPUFeature |= CPUInfo.CPU_FEATURE_NEON;
}
if (cpuInfo.contains("vfpv3")) {
ci.mCPUFeature |= CPUInfo.CPU_FEATURE_VFPV3;
}
if (cpuInfo.contains(" vfp")) {
ci.mCPUFeature |= CPUInfo.CPU_FEATURE_VFP;
}
String[] items = cpuInfo.split("\n");
for (String item : items) {
if (item.contains("CPU variant")) {
int index = item.indexOf(": ");
if (index >= 0) {
String value = item.substring(index + 2);
try {
ci.mCPUCount = Integer.decode(value);
ci.mCPUCount = ci.mCPUCount == 0 ? 1 : ci.mCPUCount;
} catch (NumberFormatException e) {
ci.mCPUCount = 1;
}
}
} else if (item.contains("BogoMIPS")) {
int index = item.indexOf(": ");
if (index >= 0) {
String value = item.substring(index + 2);
}
}
}
return ci;
}
/**
* 獲取設備內存大小值
* @return 內存大小,單位MB
*/
public static long getTotalMemory() {
String str1 = "/proc/meminfo";
String str2;
String[] arrayOfString;
long initial_memory = 0;
try {
FileReader localFileReader = new FileReader(str1);
BufferedReader localBufferedReader = new BufferedReader(localFileReader, 8192);
str2 = localBufferedReader.readLine();
if (str2 != null) {
arrayOfString = str2.split("\\s+");
initial_memory = Integer.valueOf(arrayOfString[1]).intValue()/1024;
}
localBufferedReader.close();
return initial_memory;
}
catch (IOException e)
{
return -1;
}
}
/**
* @hide
* @return
*/
public CPUInfo getCPUInfo() {
String strInfo = null;
try
{
byte[] bs = new byte[1024];
RandomAccessFile reader = new RandomAccessFile("/proc/cpuinfo", "r");
reader.read(bs);
String ret = new String(bs);
int index = ret.indexOf(0);
if(index != -1) {
strInfo = ret.substring(0, index);
} else {
strInfo = ret;
}
}
catch (IOException ex)
{
strInfo = "";
ex.printStackTrace();
}
CPUInfo info = parseCPUInfo(strInfo);
info.mCPUMaxFreq = getMaxCpuFreq();
return info;
}
/**
* 獲取android CPU類型
*
* @return String CPU類型
*/
public static String getCpuModel(){
String cpu_model = "";
CPUInfo in = getCPUInfo();
if ((in.mCPUType & CPUInfo.CPU_TYPE_ARMV5TE) == CPUInfo.CPU_TYPE_ARMV5TE)
cpu_model="armv5";
else if ((in.mCPUType & CPUInfo.CPU_TYPE_ARMV6) == CPUInfo.CPU_TYPE_ARMV6)
cpu_model="armv6";
else if ((in.mCPUType & CPUInfo.CPU_TYPE_ARMV7) == CPUInfo.CPU_TYPE_ARMV7)
cpu_model="armv7";
else
cpu_model="unknown";
return cpu_model;
}
/**
* 獲取android CPU特性
*
* @return String CPU特性
*/
public static String getCpuFeature(){
String cpu_feature = "";
CPUInfo in = getCPUInfo();
if ((in.mCPUFeature & CPUInfo.CPU_FEATURE_NEON ) == CPUInfo.CPU_FEATURE_NEON)
cpu_feature="neon";
else if ((in.mCPUFeature & CPUInfo.CPU_FEATURE_VFP ) == CPUInfo.CPU_FEATURE_VFP)
cpu_feature="vfp";
else if ((in.mCPUFeature & CPUInfo.CPU_FEATURE_VFPV3 ) == CPUInfo.CPU_FEATURE_VFPV3)
cpu_feature="vfpv3";
else
cpu_feature="unknown";
return cpu_feature;
}
/**
* 獲取ip地址
*
* @param mContext Context
* @return ip地址字元串
*/
public static String getIpAddress(Context mContext) {
String ipAddress = null;
try {
for (Enumeration<NetworkInterface> en = NetworkInterface
.getNetworkInterfaces(); en.hasMoreElements();) {
NetworkInterface intf = en.nextElement();
for (Enumeration<InetAddress> enumIpAddr = intf
.getInetAddresses(); enumIpAddr.hasMoreElements();) {
InetAddress inetAddress = enumIpAddr.nextElement();
if (!inetAddress.isLoopbackAddress()) {
ipAddress = inetAddress.getHostAddress().toString();
}
}
}
} catch (SocketException ex) {
return null;
}
if (DEBUG) {
Log.d(TAG, "ip address:" + ipAddress);
}
return ipAddress;
}
Ⅸ android 獲取cpu信息就獲取了一個0是什麼意思
可以用cat /proc/cpuinfo這樣的命令來獲取文件內容,檢查下你的輸入是否有誤
1. cpu基本信息:
# cat cpuinfo
cat cpuinfo
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 996.00
Features : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc08
CPU revision : 2
Hardware : GT-P1000
Revision : 0012
Serial : 323049f4d7e500ec
2. cpu核數:
# ls -l /sys/devices/system/cpu
ls -l /sys/devices/system/cpu
-r--r--r-- root root 4096 2014-08-05 15:38 online
-r--r--r-- root root 4096 2014-08-05 15:38 possible
-r--r--r-- root root 4096 2014-08-05 15:38 present
-r--r--r-- root root 4096 2014-08-05 15:38 kernel_max
-r--r--r-- root root 4096 2014-08-05 15:38 offline
drwxr-xr-x root root 2014-08-05 15:38 cpufreq
drwxr-xr-x root root 2014-08-05 15:38 cpuidle
drwxr-xr-x root root 2014-08-05 15:35 cpu0
可見,在這個目錄下保存了cpu更多的信息,其中,kernel_max就是cpu核數,注意,如果為0,則表示是單核;wei1,表示雙核,以此類推。
以下,是一些例子:
# cat kernel_max (cpu核數)
cat kernel_max
0
3. cpu頻率:
#ls /sys/devices/system/cpu/cpu0/cpufreq(存放cpu頻率相關的文件夾)
cpuinfo_min_freq
cpuinfo_max_freq
cpuinfo_transition_latency
scaling_min_freq
scaling_max_freq
affected_cpus
related_cpus
scaling_governor
scaling_driver
scaling_available_governors
scaling_setspeed
cpuinfo_cur_freq
scaling_cur_freq
conservative
stats
# cat cpuinfo_min_freq (最小頻率)
cat cpuinfo_min_freq
100000
# cat cpuinfo_max_freq (最大頻率)
cat cpuinfo_max_freq
1000000