Android cpu cores reported in /proc/stat

前端 未结 4 1476
遇见更好的自我
遇见更好的自我 2020-12-10 00:32

I am developing an Android application that shows the CPU load per core and memory consumption. For CPU load I am reading /proc/stat and for memory -> /proc/meminfo. However

4条回答
  •  时光说笑
    2020-12-10 00:36

    I have been searching about how to get CPU usage from android for days and nights and I run into that problem some times.

    Well, if I am not wrong I think that when you don't get a CPU core means that the core that is not been displayed is offline (android do so to prevent huge battery drain).

    If you want to find out how many core the android has find another way, there are tooooons out there, and then do whatever you like.

提交回复
热议问题