Wrapper for getting process information.
Project description
pagurus
Used for getting the information from a running job based on its pid using psutil.
Running pagurus as a wrapper for a single user
# Start running wrapper in the background for username
pagurus -u username -o /path/to/output/username_data_$(date +%h_%d_%Y_%H.%M).csv &
# Get the previous running PID of pagurus
export PID=$!
# Sleep for a few seconds to let everything start running
sleep 10
# Run your desired program as normal
./a.out
# Kill the pagurus process
kill $PID
# Sleep for a few seconds to let results finish writing
sleep 10
Plotting results
hermit -i test_data-time.csv
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
pagurus-0.1.2.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file pagurus-0.1.2.tar.gz
.
File metadata
- Download URL: pagurus-0.1.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d62163fd800d63d82704e815cac6557237779e10a004060473c1cfbfb5e7d976 |
|
MD5 | 21e537c47bf14a25a83d2477e48b0517 |
|
BLAKE2b-256 | 2b08309dfe2312911971adfca1542d797681846e525b561a355d7b1a30f1a9d9 |
File details
Details for the file pagurus-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: pagurus-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e4930231a2ebc5eef66319f2c79a5983dc11b672209b228a0b0d55bf15e143f |
|
MD5 | 78db1a025dd33f60fa21b4a085154e13 |
|
BLAKE2b-256 | d7dde270bdf96e919f2068b84944d0fdb4d43bc1f92403a127efe53da6877b03 |