ubuntu里面的系统自带的资源监视器,可以看到资源占用情况,但是一个大窗口很不方便,而且也没有硬盘io数据
百度过,一般都会找到一个叫indicator-sysmonitor的工具
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update
sudo apt-get install indicator-sysmonitor
这样就安装好了,它的图标和系统的一样,是用python写的,其实只是实现了在ubuntu的标题栏里加入显示。
源码在github上可以拉到:https://github.com/fossfreedom/indicator-sysmonitor
拉下来跑了一下发现其中没有硬盘io,看源码里用的是psutil,本来想加个ps.disk_io_counters就搞定,结果出错。
最后自己写了个iostat的读取结果来实现了,修改版也上传到了github:https://github.com/czysoft/indicator-sysmonitor
有需要的朋友可以下载
安装包下载:https://download.youkuaiyun.com/download/czysoft/12428504