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.3.tar.gz (20.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.3-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scriptperf-0.0.3.tar.gz
  • Upload date:
  • Size: 20.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.3.tar.gz
Algorithm Hash digest
SHA256 1e8fed705fe225ec77b587fd518bf70f431bcfe8397c2446d3993be073fd60c0
MD5 cc3ee438e71470878022d37d61babcfc
BLAKE2b-256 f888dc895de2dedbd597241e3947b1856a50d10ea86f165aff0deccc7ec2a508

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scriptperf-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b41556531df7ea5bfc50ba8cb655e3907c10187645727b1d59791acd279befb7
MD5 eac965759e0db7eec87b45f8cdc11d85
BLAKE2b-256 93ec7c29b842de35211c53b0c6939063b98368915f4faa2a37d8ed2bcac66ac9

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