From 7366749f9ca534fe15249401268255c719508e5e Mon Sep 17 00:00:00 2001 From: Andreas <andreasv@fsmpi.rwth-aachen.de> Date: Wed, 5 Oct 2016 22:42:12 +0200 Subject: [PATCH] added a profiler --- profiling.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 profiling.py diff --git a/profiling.py b/profiling.py new file mode 100755 index 0000000..9b6e1ee --- /dev/null +++ b/profiling.py @@ -0,0 +1,6 @@ +#!/usr/bin/python3 +from werkzeug.contrib.profiler import ProfilerMiddleware +from server import app +app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30]) +app.run(debug = True) + -- GitLab