「AndroidでCPUの最小周波数と最大周波数を取得する」の版間の差分

ページの作成:「; 機種 * arrows We FCG01 ; 取得 「/sys/devices/system/cpu/cpu*」からCPUコアごとの各種情報がテキストファイルとして取得できる。 * 最小周波数: cpuinfo_min_freq * 最大周波数: cpuinfo_max_freq <source lang=bash> $ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq 300000 $ cat /sys/devices/system/cpu/cpu…」
 
編集の要約なし
 
(同じ利用者による、間の3版が非表示)
1行目: 1行目:
; 機種
; 環境
* arrows We FCG01
* arrows We FCG01
* adb shell


; 取得
; 最小周波数と最大周波数
「/sys/devices/system/cpu/cpu*」からCPUコアごとの各種情報がテキストファイルとして取得できる。
「/sys/devices/system/cpu/cpu*」からCPUコアごとの各種情報がテキストファイルとして取得できる。
* 最小周波数: cpuinfo_min_freq   
* 最小周波数: cpuinfo_min_freq   
15行目: 16行目:
</source>
</source>


; 現在周波数
現在周波数はscaling_cur_freqで取得できる。
<source lang=bash>
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq                                                                                                               
1478400
</source>
cpuinfo_cur_freqと紛らわしい。
cpuinfo_cur_freqはroot権限が必要。
cpuinfo_cur_freqはroot権限が必要。
<source lang=bash>
<source lang=bash>
37行目: 46行目:
drwxr-xr-x 2 root  root      0 2024-10-16 12:44 stats
drwxr-xr-x 2 root  root      0 2024-10-16 12:44 stats
</source>
</source>


[[category: Android]]
[[category: Android]]