I am developing an app with flask and SQL Alchemy.
I need to display the queries executed to generate a page alongside the time each query took for debugging
In addition to the answer by Cawb07, which solved it for me, be sure you have
DEBUG_TB_INTERCEPT_REDIRECTS set to True when you are querying before redirects.