X-Git-Url: http://git.datanom.net/flask-test.git/blobdiff_plain/db4f0ba9d4aec596f179335f1d86b3dd2bb206c6..163c4d87c8cefd45e8c8836daa28c53956be1e1a:/profile.py diff --git a/profile.py b/profile.py new file mode 100755 index 0000000..fd4eda7 --- /dev/null +++ b/profile.py @@ -0,0 +1,7 @@ +#!flask/bin/python +from werkzeug.contrib.profiler import ProfilerMiddleware +from app import app + +app.config['PROFILE'] = True +app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30]) +app.run(debug = True)