A sample project to demonstrate profiling python flask web applications
To get started, simply:
- term 1:
git clone git@github.com:ChrisCarini/sample-python-profile-flask.git
- term 1:
source setup.sh
- term 1:
flask --app webapp --debug run
- term 2:
curl localhost:5000
- Kill the webapp started in step #3 (
[Cmd] + [C]
on OSX) - term 1:
snakeviz perf_test/GET.*.prof
- Browser should open, and you can view performance data in
snakeviz
(example below)