/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
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 proctracer-0.0.32.tar.gz.
File metadata
- Download URL: proctracer-0.0.32.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3de9589015c0ab8e7e5662450bc4bec0896d2382652e96141b62d76847c15b4
|
|
| MD5 |
69d888af7ca23cebd746db6948347e72
|
|
| BLAKE2b-256 |
58d6cd8a7a6bfefdb654b5cf8f20f8bf3736edb767dfa74fe7d9d654093e1561
|
File details
Details for the file proctracer-0.0.32-py3-none-any.whl.
File metadata
- Download URL: proctracer-0.0.32-py3-none-any.whl
- Upload date:
- Size: 20.6 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 |
323fb638e4281101a2e3f6adda38aa17207189050ffc85214af9fce2c639c340
|
|
| MD5 |
8840b6bcaae618c065656d93975e094b
|
|
| BLAKE2b-256 |
71c9424de07c07af118dc1ad9d0f049e7768c862b08bf781fbb341b71db068c0
|