[flask] show render time on a page
For debugging purposes, I wanted to see the rendering time of each page.
I found a solution here. Here are the links:
- show request time in template @Gist (nice and simple, just copy/paste)
- Flask-DebugToolbar, port of the famous django-debug-toolbar (the docs is excellent, easy to configure)
- Flask-DebugToolbar-Mongo; MongoDB support, good docs, easy to configure
Note that Flask-DebugToolbar is very useful but it really slowed down my application. I even switched it off and I only use it when I want to debug something. When the issue is solved I switch it off again.