Beispiel #1
0
 def _perform_call(self, func, args):
     __traceback_hide__ = 'before_and_this'
     measure = measurement.enable(
             "pylons.controllers.core.WSGIController._perform_call")
     result = wsgi_controller_perform_call(self, func, args)
     measurement.disable(measure)
     return result
Beispiel #2
0
 def commit(self):
     measure = measurement.enable("sqlalchemy.orm.session.Session.commit")
     result = _session_commit(self)
     measurement.disable(measure)
     return result
Beispiel #3
0
 def close(self):
     measure = measurement.enable(
             "sqlalchemy.orm.session.SessionTransaction.commit")
     result = _transaction_close(self)
     measurement.disable(measure)
     return result
Beispiel #4
0
 def wsgi_start_response(self, status, response_headers, exc_info=None):
     measure = measurement.enable("paste.httpserver.WSGIHandlerMixin.wsgi_start_response")
     result = _org_wsgi_start_respone(self, status, response_headers, exc_info)
     measurement.disable(measure)
     return result