Create plots of memory usage for a process.
Project description
process-plot
Create plots of memory and CPU usage for a process.
This is a wrapper around the ps command, which polls it at a set interval.
Usage
Install the package with pip or pipx:
$ pipx install process-plot
then run:
$ pplot exec -i 0.1 "sleep 1"
PPLOT INFO: Output files will be written to: /user/pplot_out, with basename: 20210921024614
PPLOT INFO: Running process
PPLOT INFO: Total run time: 0 hour(s), 00 minute(s), 01.175246 second(s)
PPLOT INFO: Plotting results
PPLOT SUCCESS!
You will then find the output files in /user/pplot_out
, with a plot for the process like:
Additional options are available:
$ pplot exec --help
Usage: pplot exec [OPTIONS] COMMAND
Execute a command and profile it.
Options:
-i, --interval FLOAT Interval in seconds
-c, --command-output [hide|screen|file]
Mode for stdout/stderr of command [default:
file]
-p, --basepath TEXT Basepath for output files
-n, --basename TEXT Basename for output files (defaults to
datetime)
-v, --verbose Increase verbosity [x>=0]
-q, --quiet Quiet mode
--help Show this message and exit.
Acknowledgements
Initially adapted from: https://github.com/jeetsukumaran/Syrupy
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
process_plot-0.1.1.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for process_plot-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75121104de876aa8d0cddd6213fdc571ad0bda9a9a760e958e46a4cd4bbb7b28 |
|
MD5 | ae9ff0476bb7cb9aef6e2c82586db056 |
|
BLAKE2b-256 | 1902fb291c815787bdc8ab92fe32db471df49db8ee8287ac84d9c60b957f7534 |