==============
This package creates a command-line utility that will run a command
and also run a daemon monitoring memory use as the command runs. The
daemon uses the `ps` command to check memory use, so this will only
work on `UNIX`-like systems.
I've found this functionality to be particularly useful in batch
processing jobs that run in docker containers, because the output
of `ps aux` isolates only processes running in-container. So by
recording max memory use, you can track how large of containers you
need.
Usage::
pip install monitor_memory
monitor_memory <some command>
All arguments after the command are forwarded to the command, as is standard
input. So, for example, to run an arbitrary bash script you can use a
here-document::
monitor_memory bash << \EOF_
NAME="me"
echo ${NAME}
EOF_
Metadata
Release files for monitor-memory 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| monitor_memory-0.0.2.tar.gz | 4.4 kB | Without provenance | Details for monitor_memory-0.0.2.tar.gz |
Release files / monitor_memory-0.0.2.tar.gz
| Download URL | monitor_memory-0.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa26e7f155a3f42e302241ed8c0ecc0f66e541ac0c86d8171f99fe4161463ded
|
|
BLAKE2b-256 checksum How to use checksums |
9c71b98089381dfbf1fbada76f66b75579c78ba700c60a0f820b6313e1fcc18f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for monitor-memory 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.