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.1.tar.gz (18.8 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.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scriptperf-0.0.1.tar.gz
  • Upload date:
  • Size: 18.8 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.1.tar.gz
Algorithm Hash digest
SHA256 0b6fffd7a9a1813fccdbc25ba848ef515b96bfc9c382d82df8a9c01cb700b41b
MD5 a7583281b586df9ba3b226ee76e3eb21
BLAKE2b-256 6d5282e0256c75e2e93b637072248fa339618e6d69f3ae29e3a37f8b3dd2c882

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scriptperf-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 017d129de4c5fef8a9d1bf6d20994400ab8ed9106d9de55833fd98f329320653
MD5 64aa10a3b36b8d865b4c8f0a52f41fb9
BLAKE2b-256 0c7b2bcb7f6c7e408167e602716ff2ba1a75fe6bf9a67834776c52a8f447fe89

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