AnotherMonitor
AnotherMonitor copied to clipboard
CPU USage
Hi,
This is not a issue but a suggestion. To retrieve an average CPU load for the device, you could run the linux command "uptime" and parse the output.
I hope this will help
Hi srouvier!
The uptime
command shows the average CPU usage for the last 1, 5 and 15 minutes. It's perhaps a too long interval so that the average data could be meaningful for development purposes.
But thanks for the suggestion!
Tony
According to this thread there are a couple of tricks that might make it possible to revive the project, either:
- Parsing the output of the command
dumpsys cpuinfo
. - Or installing htop in Termux and running it with these commands:
su
env LD_LIBRARY_PATH=../usr/lib ../usr/bin/htop
If it works then it should be possible to convert the most relevant parts of the code into a usable library through JNI.
In both cases it is required to have root access but if any of these tricks is valid then it could be a way to keep AnotherMonitor alive (at least among advanced users). According to what is commented here it seems that this type of applications are also functional in modified ROMs.