Created
November 12, 2014 15:59
-
-
Save debovis/86925b818b9cd8c8ac47 to your computer and use it in GitHub Desktop.
werkzeug profiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from werkzeug.contrib.profiler import ProfilerMiddleware | |
app.config['PROFILE'] = True | |
app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30]) | |
app.run( host='0.0.0.0', port=8081, threaded=True, debug=debug ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment