Skip to main content

Run Python scripts with performance monitoring (CPU and memory usage tracking)

Project description

Run Python scripts with performance monitoring (CPU and memory usage tracking).

Installation

pip install scriptperf

Usage

# Run a script with performance monitoring
spx demo.py

# Custom sampling interval and output directory
spx demo.py --interval 0.2 --output ./reports

# Pass arguments to the script
spx demo.py --arg1 value1 --arg2 value2

Features

  • Real-time CPU and memory usage monitoring

  • Automatic performance report generation (PNG charts)

  • Support for passing arguments to monitored scripts

  • Configurable sampling interval and output directory

Requirements

  • Python 3.8+

  • psutil>=5.9.0

  • matplotlib>=3.5.0

Repository

https://github.com/all-for-freedom/scriptperf

License

MIT License

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

scriptperf-0.0.2.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

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

scriptperf-0.0.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file scriptperf-0.0.2.tar.gz.

File metadata

  • Download URL: scriptperf-0.0.2.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for scriptperf-0.0.2.tar.gz
Algorithm Hash digest
SHA256 465cb518ee9ff6cbc0691c3890032fc7d85308ec67acbba03812e32fe16e6633
MD5 99f9b4ff8a0be7e22004d452eae628c0
BLAKE2b-256 72a42f3abca769d92b8512be2ebb02e8ba8dc966e9cf994c8c840f6761bde149

See more details on using hashes here.

File details

Details for the file scriptperf-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: scriptperf-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for scriptperf-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca7eeac5c223d103cfd504dc46dfd12a74c429dc196f27ddc97ea117cd39e435
MD5 4452a8455e91d19762dbe4a1c677a9cb
BLAKE2b-256 cd12f2d8d7293d936e4669bbab2e970d7f24f5fab78526147a32916f9ecc1cfc

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