Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU USage #9

Open
srouvier opened this issue Sep 24, 2018 · 2 comments
Open

CPU USage #9

srouvier opened this issue Sep 24, 2018 · 2 comments

Comments

@srouvier
Copy link

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

@AntonioRedondo
Copy link
Owner

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

@aaferrari
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants