Skip to main content

Create plots of memory usage for a process.

Project description

process-plot

Build Status PyPI version

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:

example plot

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


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.2.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

process_plot-0.1.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file process_plot-0.1.2.tar.gz.

File metadata

  • Download URL: process_plot-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for process_plot-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5dc1b5a9c903e61b1d427ba043c2cc53b2f4c633555789f6cab63cc59f4b8795
MD5 5fb4fe4c445326c3d282b3c538d5fb61
BLAKE2b-256 d967a5f4053f7ee79304cbe09f3061f397df6588affed2d029022cfb69d22e0f

See more details on using hashes here.

File details

Details for the file process_plot-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: process_plot-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for process_plot-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 31b1f6ec76d1f61c380a88bdd20e23e40a79775316162af886aa90288ca71cfb
MD5 9612e8978df0e9b2bc542d75a3b0ec1b
BLAKE2b-256 4fa3c2c9b03dda331176a0c78c78be72ebd83ae76538329e40f4c1b9ccc24262

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page