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

Add CPU monitor #80

Merged
merged 2 commits into from
Jun 6, 2020
Merged

Add CPU monitor #80

merged 2 commits into from
Jun 6, 2020

Conversation

mdoege
Copy link
Contributor

@mdoege mdoege commented Jun 6, 2020

A simple scrolling CPU usage monitor. It uses psutil (https://pypi.org/project/psutil/) if available and if that is not installed as on Snakeware right now, it falls back to reading /proc/stat directly which only works on Linux.

If you run this in QEMU, CPU usage is always close to 100%, so it does not tell you much except performance in QEMU is bad. But on real hardware it looks much better and more informative.

@joshiemoore
Copy link
Owner

Awesome!!!

@joshiemoore joshiemoore merged commit d25126c into joshiemoore:master Jun 6, 2020
@joshiemoore
Copy link
Owner

Also, you don't have to worry about compatibility with anything except Linux, since snakewm is a wm for our Linux distro

@mdoege
Copy link
Contributor Author

mdoege commented Jun 6, 2020

Maybe someone will want to run snakewm on macOS or Windows at some point if the project takes off. So I think it does not hurt to make things cross-platform whenever possible. Python usually makes it pretty simple...

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

Successfully merging this pull request may close these issues.

2 participants