/proc Tracer
Project description
/proc Tracer
This is the developer/maintainer documentation. For user documentation, go to https://github.com/david-kracht/proctracer
Setup
You can run proctracer from source in Windows, MacOS, and Linux:
-
Install pip following pip docs.
-
Clone proctracer repository:
$ git clone https://github.com/david-kracht/proctracer.git
- Install in editable mode
$ cd proctracer && sudo pip install -e .
- You are ready, try to run proctracer:
$ proctracer --help
usage: /proc Tracer (Daemon) [-h] [-c CONFIG] [-o OUTPUT_PATH] [-n REPORT_NAME] [-f] {start,stop,restart,message} ...
positional arguments:
{start,stop,restart,message}
start Start Tracer
stop Stop Tracer
restart Restart Tracer
message Message to Running Tracer
optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
Path to /proc Tracer config yaml.
-o OUTPUT_PATH, --output_path OUTPUT_PATH
Output path for report.
-n REPORT_NAME, --report_name REPORT_NAME
Name of the report file.
-f, --foreground Start Tracer in foreground, not daemonized.
- Examplary usage and result:
$ proctracer -o ~/1/2 -n proc_report start
Start /proc Tracer (Daemon)...
Output will be written to: /root/1/2
$ proctracer message first
Message to running /proc Tracer (Daemon) ...
$ proctracer message 2nd
Message to running /proc Tracer (Daemon) ...
$ proctracer message 2nd
Message to running /proc Tracer (Daemon) ...
$ proctracer message 3rd
Message to running /proc Tracer (Daemon) ...
$ stress -c 1 -t 5
stress: info: [514601] dispatching hogs: 1 cpu, 0 io, 0 vm, 0 hdd
stress: info: [514601] successful run completed in 5s
$ proctracer stop
Stop /proc Tracer (Daemon).
$ tree ~/1
/home/user/1
└── 2
└── proc_report.pdf
- Package and Upload
Place token in
~/.pypirc
, i.e
[pypi] username = token password = pypi-AgEIcHlwa0A5vasXU4w
$ chmod 600 ~/.pypirc
$ sudo pip install twine
$ python3 setup.py sdist bdist_wheel
$ twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proctracer-0.0.26.tar.gz
(15.5 kB
view details)
Built Distribution
File details
Details for the file proctracer-0.0.26.tar.gz
.
File metadata
- Download URL: proctracer-0.0.26.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00914f090de25d320f0fa38bd79e5b7c4c99d1a44c6d8625030b4dc0139ad7fa |
|
MD5 | e9c0c00822362d75be8f0500abf88569 |
|
BLAKE2b-256 | 4fc4da6cd4b929a19ae544b554c69621648ca055b0f88a84af6f4c7841752d95 |
File details
Details for the file proctracer-0.0.26-py3-none-any.whl
.
File metadata
- Download URL: proctracer-0.0.26-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52694884e14c624fb3396e80d4a423e45976f336d59207dfb65347304103841 |
|
MD5 | 061efce3a1919d1f76d99f4b96bf4907 |
|
BLAKE2b-256 | da4205afa24df6f95012d85315a296353e3392e7780af4bfb072923bb17d8cb5 |