Skip to main content

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'

Metadata

Release files for magicprof 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magicprof 0.0.1
File Size Uploaded Provenance
magicprof-0.0.1.tar.gz 2.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for magicprof 0.0.1
File Interpreter ABI Platform
magicprof-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.9 kB

Release files / magicprof-0.0.1.tar.gz

Download URL magicprof-0.0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
76f49aca41581229372f222aa1b850c2298043fb7060bfe7fc79bf5e70c5f208
BLAKE2b-256 checksum
How to use checksums
9c5e467fc8f5afa90b7d39783f4e8d9b004b47f0cb6f2d2d740b599bb6450a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Release files / magicprof-0.0.1-py3-none-any.whl

Download URL magicprof-0.0.1-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb77b934b22ea91026c365dc8a66f7a5dd7edaff7b0308b7c1c7e9f5ef8e50af
BLAKE2b-256 checksum
How to use checksums
f7b0d9c509e2d5bc53545315511ef493ea582c7afaf033a31cdeb8e433f8a050
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.4

Security for magicprof 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page