示例#1
0
文件: pylons.py 项目: skoenen/pyprol
 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
示例#2
0
 def commit(self):
     measure = measurement.enable("sqlalchemy.orm.session.Session.commit")
     result = _session_commit(self)
     measurement.disable(measure)
     return result
示例#3
0
 def close(self):
     measure = measurement.enable(
             "sqlalchemy.orm.session.SessionTransaction.commit")
     result = _transaction_close(self)
     measurement.disable(measure)
     return result
示例#4
0
文件: paste.py 项目: skoenen/pyprol
 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