def next(self, *args, **kwargs):
     return _e_trace(self._e_db_next, min_duration,
                     self._e_object.next, *args, **kwargs)
 def executemany(self, *args, **kwargs):
     return _e_trace(self._e_db_query, min_duration,
                     self._e_object.executemany, *args, **kwargs)
 def fetchall(self, *args, **kwargs):
     return _e_trace(self._e_db_fetchall, min_duration,
                     self._e_object.fetchall, *args, **kwargs)
 def rollback(self, *args, **kwargs):
     return _e_trace(self._e_db_rollback, min_duration,
                     self._e_object.rollback, *args, **kwargs)
 def __call__(self, *args, **kwargs):
     return TimerWrapper(_e_trace(self._e_db_connect, min_duration/2.0,
                                  self._e_object, *args, **kwargs),
                         self._e_module_name)
 def __call__(self, *args, **kwargs):
     return TimerWrapper(_e_trace(general_factory, min_duration,
                                  self._e_object, *args, **kwargs),
                         self._e_module_name)
 def commit(self, *args, **kwargs):
     return _e_trace(self._e_db_commit, min_duration,
                     self._e_object.commit, *args, **kwargs)
 def fetchall(self, *args, **kwargs):
     return _e_trace(self._e_db_fetchall, min_duration,
                     self._e_object.fetchall, *args, **kwargs)
 def next(self, *args, **kwargs):
     return _e_trace(self._e_db_next, min_duration, self._e_object.next,
                     *args, **kwargs)
 def executemany(self, *args, **kwargs):
     return _e_trace(self._e_db_query, min_duration,
                     self._e_object.executemany, *args, **kwargs)
 def __call__(self, *args, **kwargs):
     return TimerWrapper(
         _e_trace(self._e_db_connect, min_duration / 2.0,
                  self._e_object, *args, **kwargs), self._e_module_name)
 def rollback(self, *args, **kwargs):
     return _e_trace(self._e_db_rollback, min_duration,
                     self._e_object.rollback, *args, **kwargs)
 def commit(self, *args, **kwargs):
     return _e_trace(self._e_db_commit, min_duration,
                     self._e_object.commit, *args, **kwargs)
示例#14
0
 def __call__(self, *args, **kwargs):
     return TimerWrapper(
         _e_trace(general_factory, min_duration, self._e_object, *args,
                  **kwargs), self._e_module_name)