Pyinstrument
Pyinstrument shows where a Python program spends its time so you can find what makes it slow.
joerick · Code and testing
GitHub projectOpen source Open on GitHub
Image source · Image credits and license
How to try it
Measure a sample Python script that sorts numbers and waits briefly, then show which part took the most time.
What we tested
5.1.3. Recorded where a catalog search spent its time and identified the step that loaded the catalog.