profiler.py 340 B

123456789101112
  1. from werkzeug.contrib.profiler import ProfilerMiddleware
  2. from lakesuperior.app import create_app
  3. from lakesuperior.config_parser import config
  4. fcrepo = create_app(config['application'], config['logging'])
  5. fcrepo.wsgi_app = ProfilerMiddleware(fcrepo.wsgi_app, restrictions=[30])
  6. fcrepo.config['PROFILE'] = True
  7. fcrepo.run(debug = True)