]> git.datanom.net - flask-test.git/blobdiff - profile.py
final
[flask-test.git] / profile.py
diff --git a/profile.py b/profile.py
new file mode 100755 (executable)
index 0000000..fd4eda7
--- /dev/null
@@ -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)
This page took 0.027333 seconds and 5 git commands to generate.