Skip to content

Navigation Menu

Sign in
Appearance settings

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

Commit 401724d

Browse filesBrowse files
authored
Create README.md
1 parent d86797a commit 401724d
Copy full SHA for 401724d

File tree

Expand file treeCollapse file tree

1 file changed

+18
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+18
-0
lines changed

‎README.md

Copy file name to clipboard
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+

0 commit comments

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