tmux-mem-cpu-load
tmux ã®ã¹ãã¼ã¿ã¹ã©ã¤ã³ã« load average ã¨ãã®ã£ããããªã¼ã¨æã£ã¦ããã£ãããtmux-mem-cpu-load ã¨ãããã®ãã®ãã°ããªããã°ã©ã ãããã
github ã«ããã®ã§ã½ã¼ã¹ã³ã¼ãã git clone ãã¦ãã«ãããã
$ git clone https://github.com/thewtex/tmux-mem-cpu-load.git $ cd tmux-mem-cpu-load $ cmake . $ make $ sudo make install
cmake ã¨ã使ã£ã¦ããã©ãæè©® C++ ã½ã¼ã¹1ãã¡ã¤ã«ã ããã以ä¸ã®ããã« g++ ç´æ¥å©ãã¦ã³ã³ãã¤ã«ãã¦ãè¯ãã
$ g++ -Wall tmux-mem-cpu-load.cpp -o tmux-mem-cpu-load
ãã¨ã¯ãREADME.rst ãåèã« ~/.tmux.conf ã«ä»¥ä¸ã追è¨ããã° OKã
set -g status-interval 2 set -g status-right-length 100 set -g status-right "#[bg=colour189] #(tmux-mem-cpu-load 2) %m/%d/%Y %H:%M "
tmux ãèµ·åããã°ä»¥ä¸ã®ç»åã®ããã«è¡¨ç¤ºãããã
æ¢ã« tmux ã®ä¸ã«å±
ããªãããC-t : source-file ~/.tmux.confãã¨ãããã° OK (C-t 㯠prefix ãã¼)ã
ã¹ãã¼ã¿ã¹ã©ã¤ã³ã®ç½èæ¯ã®é¨åã tmux-mem-cpu-load ã®æ
å ±ãã®ã£ãã¦ããã¨ããã
å·¦ãããã¡ã¢ãªä½¿ç¨éãCPU å©ç¨çæ£ã°ã©ããCPU å©ç¨ç(å²å)ããã¼ãã¢ãã¬ã¼ã¸(éå» 1åã5åã15å)ãç¾å¨æå»ã®é ã
2 ç§ééã§ã®æ´æ°ã¨ãªãã
ã½ã¼ã¹ã³ã¼ããè¦ã㨠/proc/stat ã¨ã /proc/meminfo ã¨ã /proc/loadavg ã¨ãããæååãããã®ã§ãLinux ãããªãã¨åããªãããã
ã¨ãããããSolaris çã¯ããã£ããè¦ã£ãã£ãã
ãããªæãã§ã
æ´æ°æå»
- 2013/3/30 01:07