Skip to content

Instantly share code, notes, and snippets.

@debovis
Created November 12, 2014 15:59
Show Gist options
  • Save debovis/86925b818b9cd8c8ac47 to your computer and use it in GitHub Desktop.
Save debovis/86925b818b9cd8c8ac47 to your computer and use it in GitHub Desktop.
werkzeug profiler
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