Android Clock Count [Hertz]

The general processor usage question from / proc / pid / stat explains how to get processor usage, but for this we need to know the clock.

But how can I get this value in Android (directly from the device)? I just don’t understand how to use the following function in Android, because it seems to be a Linux command.

Hertz (beats per second) of your system. In most case, sysconf (_SC_CLK_TCK) can be used to return the number of hours of ticks.

+1
source share
1 answer

, , , . , , /sys:

/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

, . , cpuinfo_max_freq cpuinfo_min_freq, :

/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq

+1

Source: https://habr.com/ru/post/1539627/


All Articles