Skip to content

aaraney/magicprof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 magicprof

About

Automatically instrumented python profiling.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages