curtistarr / mai Goto Github PK
View Code? Open in Web Editor NEWMAI (Mac Activity Indicator) is a menu bar application to show activity stats like CPU and RAM usage.
License: MIT License
MAI (Mac Activity Indicator) is a menu bar application to show activity stats like CPU and RAM usage.
License: MIT License
Running MAI on a Mac with 32GB or RAM crashes with error:
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', src/activity/ram.rs:24:36
This is probably due to the different top output for RAM usage:
PhysMem: 32G used (3684M wired), 437M unused.
It might be worth swapping over to the vm_stat
command instead of top
.
Also the app doesn't quit when this occurs, it stays open as an empty icon:
The app should handle this more gracefully and display an icon or something.
Since this is a mac native app it's probably a better idea to write it in Swift.
Rust has been handy for the basic v0.x.x
releases but limitations are showing in the cocoa
bindings that is just going to create more effort to work around going forward.
v1.0.0
will be the target for the rewrite. It should have all the same basic functionality as v0.1.1
and run with similar performance (0.1% cpu usage, 8-10MB RAM) if possible
Add toggles to the menu so the user can turn CPU and RAM activity tracking on and off.
Add option in menu for changing the refresh duration in seconds.
Error handling throughout app is pretty weak, most things are just unwrapped.
Better error handling should be implemented, maybe not to show to the user but at least to improve debugging.
Create GitHub pages site for the project https://pages.github.com/
Add option to menu to add/remove the app to the startup applciations
Save user settings between sessions.
Add unit tests and CI for pull requests via GitHub Actions https://github.com/features/actions
Create build script to bundle project into .dmg
file for macos.
Also:
README.md
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.