Record the system load at the execution of the command line and display it graphically
Project description
# oscillo
记录命令执行过程中对系统产生的负载,以图片的形式展现出来
Record the system load at the execution of the command line and display it graphically


## 安装方式 / Installation
* Install from pypi
```shell
pip install oscillo
```
* Install from local
```shell
python setup.py install
```
## 使用方式 / Usage
* 通过命令行参数启动 / Boot start by command line parameter
```
oscillo -c 'test: echo "">1.txt&&md5 1.txt' -o 1.png
```
* -c 代表将执行一个linux cmd 命令。参数后面可以跟以空格隔开的多个参数
* -o 结果输出文件
* 会在当前目录下生成一个log 文件。文本结构是json 格式. 数据结构如下
```
{
"test": {
"elapsed": 0.022143125534057617, //总执行时间
"cpu": [],
"memory": []
}
}
```
* 通过配置文件启动 / Boot start by config file
当命令很长或者很多时,可以使用配置文件启动
Whe the commands is too many, you can boot start by config file
```shell
oscillo --config </path/to/config-file.yml> [-g]
```
## 配置文件模板 / Config file
The command line in commands will be executed in order
```yml
# Demo
commands:
-
name: gzip
cmd: gzip big-file
-
name: tar
cmd: tar -zcf tmp.tar.gz big-file
output: gzip-and-tar-gz
```
记录命令执行过程中对系统产生的负载,以图片的形式展现出来
Record the system load at the execution of the command line and display it graphically


## 安装方式 / Installation
* Install from pypi
```shell
pip install oscillo
```
* Install from local
```shell
python setup.py install
```
## 使用方式 / Usage
* 通过命令行参数启动 / Boot start by command line parameter
```
oscillo -c 'test: echo "">1.txt&&md5 1.txt' -o 1.png
```
* -c 代表将执行一个linux cmd 命令。参数后面可以跟以空格隔开的多个参数
* -o 结果输出文件
* 会在当前目录下生成一个log 文件。文本结构是json 格式. 数据结构如下
```
{
"test": {
"elapsed": 0.022143125534057617, //总执行时间
"cpu": [],
"memory": []
}
}
```
* 通过配置文件启动 / Boot start by config file
当命令很长或者很多时,可以使用配置文件启动
Whe the commands is too many, you can boot start by config file
```shell
oscillo --config </path/to/config-file.yml> [-g]
```
## 配置文件模板 / Config file
The command line in commands will be executed in order
```yml
# Demo
commands:
-
name: gzip
cmd: gzip big-file
-
name: tar
cmd: tar -zcf tmp.tar.gz big-file
output: gzip-and-tar-gz
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oscillo-0.2.1.tar.gz
(9.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oscillo-0.2.1.tar.gz.
File metadata
- Download URL: oscillo-0.2.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee5912ce350dccc0c95a62ea20c8221f70a21558a074689b80852982d18f3bae
|
|
| MD5 |
fa7d26c6941d15338a245b146b2119ab
|
|
| BLAKE2b-256 |
1ce7e54187d6b74e55cff57782021903668b4705a306557823e21b5e33d4cd92
|
File details
Details for the file oscillo-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: oscillo-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07172bec02fb80fae1de90033a47c58fc7142123d2ab1f81ca439d9dbf15a867
|
|
| MD5 |
94ee945aa089940b779405e87365d1ab
|
|
| BLAKE2b-256 |
d5c0554763a7933995615be5781705349bb56bdc8ad86d073d75ac6541a2aba7
|