Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chrish42/python-profiling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Profiling Starter Kit

Examples for Python Profiling Starter Kit presentation, given at Montréal-Python on March 22nd, 2021. The profilers covered were Pyinstrument, Scalene, Py-Spy, and VizTracer. The Makefile shows an example or two for how to run each of these profilers.

Usage

We assume you already have a recent version of Python (say, 3.9) and Pipenv installed. Then, in a command-line, run:

  1. pipenv install — to install all the tools
  2. make pyinstrument — for example, to run Pyinstrument on the sample slow_program.py and output its report.

More Info

Link to the slides and more at http://christianhudon.name/talks/#mp-python-profiling.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.