How to get the CPU utilization in the android app on ChromeBook

48 views
Skip to first unread message

changePosition

unread,
May 26, 2025, 11:17:54 PMMay 26
to ChromiumOS Discussion
Android 8 and above systems no longer support reading the /proc/stat file to obtain the CPU running time, but the Android application on the mobile phone can get the CPU running time by reading the value of /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state. But I found that ChromeBook does not have the file /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state. The kernel file system of ChromeBook is different from that of the mobile phone. How can I get the CPU information?

By typing chrome://sys-internals in the Chrome browser on a ChromeBook, you can see detailed CPU information. So how can I get the device's CPU information through code in the ChromeBook App?
Reply all
Reply to author
Forward
0 new messages