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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76f49aca41581229372f222aa1b850c2298043fb7060bfe7fc79bf5e70c5f208
|
|
| MD5 |
7da58a9bbbf22c85b4a70353c9e9ae84
|
|
| BLAKE2b-256 |
9c5e467fc8f5afa90b7d39783f4e8d9b004b47f0cb6f2d2d740b599bb6450a62
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb77b934b22ea91026c365dc8a66f7a5dd7edaff7b0308b7c1c7e9f5ef8e50af
|
|
| MD5 |
0102e36649ec97cd23df6fb0e1660202
|
|
| BLAKE2b-256 |
f7b0d9c509e2d5bc53545315511ef493ea582c7afaf033a31cdeb8e433f8a050
|