File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Original file line number Diff line number Diff line change
1
+ # Python Profiling
2
+
3
+ Examples for Python profiling presentation, given at Montréal-Python on March 22nd, 2021.
4
+ The profilers covered were Pyinstrument, Scalene, Py-Spy, and VizTracer.
5
+ The ` Makefile ` shows an example or two for how to run each of these profilers.
6
+
7
+ ## Usage
8
+
9
+ We assume you already have a recent version of Python (say, 3.9) and
10
+ [ Pipenv] ( https://pipenv.pypa.io/en/latest/install/#installing-pipenv ) installed.
11
+ Then, in a command-line, run:
12
+ 1 . ` pipenv install ` — to install all the tools
13
+ 2 . ` make pyinstrument ` — for example, to run Pyinstrument on the sample ` slow_program.py ` and output its report.
14
+
15
+ ## More Info
16
+
17
+ Link to the slides and more at http://christianhudon.name/talks/#mp-python-profiling .
18
+
You can’t perform that action at this time.
0 commit comments