Open dimitrieh opened 8 years ago
Thanks! I use top
to generate the data, sampling CPU usage for 2 seconds. The script runs every 5 seconds. You could reduce it to 3 sec by changing the name of the file to mtop.3s.sh
but I wouldn't advise any lower. I find this is adequate for my requirements - which is basically to know if there is a chronic runaway process.
The graph is a BMP file generated completely "by hand" in the shell script, with no external utilities. This is done to reduce the overhead of the script and the dependencies needed to install - and mostly because it was a whole lot of fun.
The script is readable enough, but I will write up the BMP rendering as a separate script and document it because I think the same techniques will be very useful for other BitBar plugins as well.
correct :) thanks maybe i'll go tinker with it myself a little in the future. Do you have plans on building this out with all/some/most ^^ of the features from istatmenus :) ?
Many iStat features (like realtime updates) are difficult to achieve within the BitBar framework. Also, other resources like network and disk usage at process level don't have nice, standardized CLI tools like top
which we can leverage.
I'm looking at how to get these while staying within the BitBar framework. I really like BitBar's simplicity because there is a good chance I will be able to use my favourite plugins even after 5-10 years with minimum maintenance. No firm timelines though.
i can live with that! good luck! :)
On Mon, Apr 11, 2016 at 12:12 PM ganeshv notifications@github.com wrote:
Many iStat features (like realtime updates) are difficult to achieve within the BitBar framework. Also, other resources like network and disk usage at process level don't have nice, standardized CLI tools like top which we can leverage.
I'm looking at how to get these while staying within the BitBar framework. I really like BitBar's simplicity because there is a good chance I will be able to use my favourite plugins even after 5-10 years with minimum maintenance. No firm timelines though.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ganeshv/mtop/issues/1#issuecomment-208267609
Dimitrie Hoekstra, UI & Interaction Designer dhesign.com | dimitriehoekstra@gmail.com | LinkedIn https://www.linkedin.com/in/dimitrieh | Twitter https://twitter.com/strages33/
@strages: new plugin in this repo, mdf, for disk stats.
looks great! will see if i can pitch in soon with some design stuff (more of a designer here than a codewizard ;) )
Wow super nice! just got a notification from an issue i filed for bitbar. This is really good :D. we could build on this! what did you use to generate the graphs? also is it real time/whats the interval?