Skip to main content

Automatically instrumented python profiling

Project description

Automatically instrumented python profiling.

Usage

env MAGICPROF=cpu.prof python <app.py> # if MAGICPROF not set, profiling is not instrumented.

# other options:
# MAGICPROF_DISABLE_SUBCALLS # set to anything to disable subcalls. see cProfile.Profile.
# MAGICPROF_DISABLE_BUILTINS # set to anything to disable subcalls. see cProfile.Profile.

Use a tool like snakeviz to visualize the profile.

# e.g.
snakeviz cpu.prof

Install

# create python virtual environment
uv venv
uv pip install 'git+https://github.com/aaraney/magicprof@v0.0.1'

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

magicprof-0.0.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

magicprof-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: magicprof-0.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for magicprof-0.0.1.tar.gz
Algorithm Hash digest
SHA256 76f49aca41581229372f222aa1b850c2298043fb7060bfe7fc79bf5e70c5f208
MD5 7da58a9bbbf22c85b4a70353c9e9ae84
BLAKE2b-256 9c5e467fc8f5afa90b7d39783f4e8d9b004b47f0cb6f2d2d740b599bb6450a62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: magicprof-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for magicprof-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb77b934b22ea91026c365dc8a66f7a5dd7edaff7b0308b7c1c7e9f5ef8e50af
MD5 0102e36649ec97cd23df6fb0e1660202
BLAKE2b-256 f7b0d9c509e2d5bc53545315511ef493ea582c7afaf033a31cdeb8e433f8a050

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