Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
蜕变的菜鸟
glances
提交
da03de67
G
glances
项目概览
蜕变的菜鸟
/
glances
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
glances
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
da03de67
编写于
12月 05, 2011
作者:
N
nicolargo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
version 1.1.1
上级
b525c43c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
109 addition
and
26 deletion
+109
-26
Makefile.in
Makefile.in
+1
-1
README
README
+83
-0
TODO
TODO
+1
-1
autom4te.cache/requests
autom4te.cache/requests
+21
-21
configure.ac
configure.ac
+1
-1
setup.py
setup.py
+1
-1
src/glances.py
src/glances.py
+1
-1
未找到文件。
Makefile.in
浏览文件 @
da03de67
...
...
@@ -36,7 +36,7 @@ subdir = .
DIST_COMMON
=
README
$(am__configure_deps)
$(srcdir)
/Makefile.am
\
$(srcdir)
/Makefile.in
$(srcdir)
/config.h.in
\
$(top_srcdir)
/configure AUTHORS COPYING ChangeLog INSTALL NEWS
\
install-sh missing py-compile
TODO
install-sh missing py-compile
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
am__aclocal_m4_deps
=
$(top_srcdir)
/configure.ac
am__configure_deps
=
$(am__aclocal_m4_deps)
$(CONFIGURE_DEPENDENCIES)
\
...
...
README
0 → 100644
浏览文件 @
da03de67
Glances -- Eye on your system
=============================
## Description
Glances is a CLI curses based monitoring tools for both GNU/Linux and BSD.
Glances uses the libstatgrab library to get informations from your system.
Glances is developped in Python and uses the python-statgrab lib.
![screenshot](https://github.com/nicolargo/glances/raw/master/screenshot.png)
## Installation
Glances use a standard GNU style installer:
$ tar zxvf glances-v1.0.tar.gz
$ cd glances
$ ./configure
$ make
$ sudo make install
Pre-requisites:
* Python 2.6+ (not tested with Python 3)
* python-statgrab 0.5+ (did not work with python-statgrab 0.5)
Notes: The Debian Squeeze repos only include the python-statgrab 0.4.
You had to install the version 0.5 using the following commands:
$ sudo apt-get install libstatgrab-dev
$ wget http://ftp.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/pystatgrab/pystatgrab-0.5.tar.gz
$ tar zxvf pystatgrab-0.5.tar.gz
$ cd pystatgrab-0.5/
$ ./setup.py build
$ sudo ./setup.py install
## Running
Easy:
$ glances.py
## User guide
By default, stats are refrsh every second, to change this setting, you can
use the -t option. For exemple to set the refrech rate to 5 seconds:
$ glances.py -t 5
Importants stats are colored:
* GREEN: stat counter is < 50%
* BLUE: stat counter is > 50% and < 70%
* MAGENTA: stat counter is > 70% and < 90%
* RED: stat counter is > 90%
When Glances is running, you can press:
* 'a' to set the automatic mode. The process list is sorted automatically
If CPU > 70%, sort by process CPU consomption
If MEM > 70%, sort by process size
* 'c' the processes list is sorted by CPU consomption
* 'm' the processes list is sorted by process size
* 'q' Exit
## Limitation
The current version of the python-statgrab API can not retrieve the file
system statistics.
https://bugs.launchpad.net/ubuntu/+source/libstatgrab/+bug/886783
## Todo
You are welcome to contribute to this software.
* Packaging for Debian, Ubuntu, Fedora, Redhat, BSD...
* Check the needed Python library in the configure.ac
* Add file system stats when the python-statgrab is corrected
* Add a user guide window
TODO
浏览文件 @
da03de67
-
Add color indicators in the last line (right)
-
Crach when a terminal is resized with a size < 80x24
autom4te.cache/requests
浏览文件 @
da03de67
...
...
@@ -65,13 +65,13 @@
'_AM_MANGLE_OPTION' => 1,
'AM_CONDITIONAL' => 1,
'AM_SET_LEADING_DOT' => 1,
'AC_PYTHON_MODULE' => 1,
'AM_SET_DEPDIR' => 1,
'AC_PYTHON_MODULE' => 1,
'_AM_DEPENDENCIES' => 1,
'AM_PROG_INSTALL_SH' => 1,
'm4_include' => 1,
'
_AC_AM_CONFIG_HEADER_HOOK
' => 1,
'
AM_PROG_INSTALL_SH
' => 1,
'AM_PATH_PYTHON' => 1,
'_AC_AM_CONFIG_HEADER_HOOK' => 1,
'AU_DEFUN' => 1,
'AM_MAKE_INCLUDE' => 1
}
...
...
@@ -88,55 +88,55 @@
'configure.ac'
],
{
'_LT_AC_TAGCONFIG' => 1,
'AM_PROG_F77_C_O' => 1,
'
AC_INIT
' => 1,
'
_LT_AC_TAGCONFIG
' => 1,
'm4_pattern_forbid' => 1,
'
_AM_COND_IF
' => 1,
'
AC_INIT
' => 1,
'AC_CANONICAL_TARGET' => 1,
'
AC_SUBST
' => 1,
'
_AM_COND_IF
' => 1,
'AC_CONFIG_LIBOBJ_DIR' => 1,
'AC_
FC_SRCEX
T' => 1,
'AC_
SUBS
T' => 1,
'AC_CANONICAL_HOST' => 1,
'AC_FC_SRCEXT' => 1,
'AC_PROG_LIBTOOL' => 1,
'AM_INIT_AUTOMAKE' => 1,
'AM_PATH_GUILE' => 1,
'AC_CONFIG_SUBDIRS' => 1,
'AM_PATH_GUILE' => 1,
'AM_AUTOMAKE_VERSION' => 1,
'LT_CONFIG_LTDL_DIR' => 1,
'AC_REQUIRE_AUX_FILE' => 1,
'AC_CONFIG_LINKS' => 1,
'
m4_sinclude
' => 1,
'
AC_REQUIRE_AUX_FILE
' => 1,
'LT_SUPPORTED_TAG' => 1,
'm4_sinclude' => 1,
'AM_MAINTAINER_MODE' => 1,
'AM_NLS' => 1,
'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
'AM_MAKEFILE_INCLUDE' => 1,
'_m4_warn' => 1,
'AM_MAKEFILE_INCLUDE' => 1,
'AM_PROG_CXX_C_O' => 1,
'_AM_COND_ENDIF' => 1,
'_AM_MAKEFILE_INCLUDE' => 1,
'_AM_COND_ENDIF' => 1,
'AM_ENABLE_MULTILIB' => 1,
'AM_SILENT_RULES' => 1,
'AM_PROG_MOC' => 1,
'AC_CONFIG_FILES' => 1,
'include' => 1,
'LT_INIT' => 1,
'
AM_PROG_AR
' => 1,
'
include
' => 1,
'AM_GNU_GETTEXT' => 1,
'AM_PROG_AR' => 1,
'AC_LIBSOURCE' => 1,
'AM_PROG_FC_C_O' => 1,
'AC_CANONICAL_BUILD' => 1,
'AM_PROG_FC_C_O' => 1,
'AC_FC_FREEFORM' => 1,
'AH_OUTPUT' => 1,
'_AM_SUBST_NOTMAKE' => 1,
'AC_CONFIG_AUX_DIR' => 1,
'sinclude' => 1,
'AM_PROG_CC_C_O' => 1,
'_AM_SUBST_NOTMAKE' => 1,
'm4_pattern_allow' => 1,
'AM_
XGETTEXT_OPTION
' => 1,
'
AC_CANONICAL_SYSTEM
' => 1,
'AM_
PROG_CC_C_O
' => 1,
'
sinclude
' => 1,
'AM_CONDITIONAL' => 1,
'AC_CANONICAL_SYSTEM' => 1,
'AM_XGETTEXT_OPTION' => 1,
'AC_CONFIG_HEADERS' => 1,
'AC_DEFINE_TRACE_LITERAL' => 1,
'AM_POT_TOOLS' => 1,
...
...
configure.ac
浏览文件 @
da03de67
dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.
AC_INIT(Glances, 1.
0
, , glances)
AC_INIT(Glances, 1.
1.1
, , glances)
AC_CONFIG_HEADERS([config.h])
...
...
setup.py
浏览文件 @
da03de67
...
...
@@ -11,7 +11,7 @@ def read(fname):
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
fname
)).
read
()
setup
(
name
=
'Glances'
,
version
=
'1.1'
,
version
=
'1.1
.1
'
,
description
=
'CLI curses-based monitoring tools'
,
author
=
'Nicolas Hennion'
,
author_email
=
'nicolas@nicolargo.com'
,
...
...
src/glances.py
浏览文件 @
da03de67
...
...
@@ -33,7 +33,7 @@ import statgrab
#==================
# The glances version id
__version__
=
"1.1"
__version__
=
"1.1
.1
"
# Class
#======
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录