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.
, , , . , , /sys:
/sys
/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
, . , cpuinfo_max_freq cpuinfo_min_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
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
Source: https://habr.com/ru/post/1539627/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1539622/is-there-a-way-to-add-files-to-the-html5-applicationcache-using-javascript&usg=ALkJrhhh3y4RAfG6yTEU7j9_tmWTEp_LHgGet last character from id attribute - javascriptКак обернуть директивы OpenMP (#pragmas) как функцию или макрос функции? - cpython-social-auth с django. Не удается получить электронную почту пользователя на VK.com - djangoHow to getconf CLK_TCK on Android - androidWhat should be filled with memory if my malbolge program contains only 1 instruction? - virtual-machineA line in a list, multiplied by an item in another list, printed on separate lines - pythonProblem in Tic Tac Toe codec - c ++printDialog page does not work with DataGridView - c #Как загрузить (n> 2) -уровень вложенных данных из денормализованного набора данных с помощью Firebase/AngularFire? - angularjsAll Articles