Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 828 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 828 Bytes

profy

quickly profile Python commands with cProfile and Snakeviz


Installation

pip install profy

(installs profy and snakeviz)

Overview

profy doesn't do much, but it saves some time if you want to quickly profile a Python script or an entry point executable and view the result in your browser with snakeviz

Instead of:

python -m cProfile -o out.prof my_script.py --some_option
snakeviz out.prof

just type profy in front of your command:

profy my_script.py --some_option

Entry Points

profy is able to detect whether the command is a script-file or a globally installed entry point executable.

For example, we can profile a pip command:

profy pip search numpy --timeout 5

or even profy itself:

profy profy