mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-10-31 01:57:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			365 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			365 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import flask_debugtoolbar
 | |
| 
 | |
| from werkzeug.contrib import profiler as werkzeug_profiler
 | |
| 
 | |
| 
 | |
| # Debugging toolbar
 | |
| toolbar = flask_debugtoolbar.DebugToolbarExtension()
 | |
| 
 | |
| 
 | |
| # Profiler
 | |
| class Profiler(object):
 | |
|     def init_app(self, app):
 | |
|         app.wsgi_app = werkzeug_profiler.ProfilerMiddleware(
 | |
|             app.wsgi_app, restrictions=[30]
 | |
|         )
 | |
| 
 | |
| profiler = Profiler()
 | 
