mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-16 10:59:53 +02:00
18 lines
348 B
Python
18 lines
348 B
Python
import flask_debugtoolbar
|
|
|
|
from werkzeug.middleware.profiler import ProfilerMiddleware
|
|
|
|
|
|
# Debugging toolbar
|
|
toolbar = flask_debugtoolbar.DebugToolbarExtension()
|
|
|
|
|
|
# Profiler
|
|
class Profiler(object):
|
|
def init_app(self, app):
|
|
app.wsgi_app = ProfilerMiddleware(
|
|
app.wsgi_app, restrictions=[30]
|
|
)
|
|
|
|
profiler = Profiler()
|