Example #1
0
 def __init__(self):
     synthesize(self, 'isMainloopAlive', False)
     synthesize(self, 'isPromptloopAlive', False)
Example #2
0
 def __init__(self, daemon=True, **kwds):
     threading.Thread.__init__(self, **kwds)
     Process.__init__(self)
     synthesize(self, 'threadLock', threading.Lock())
     self.setDaemon(daemon)
Example #3
0
 def __init__(self,
              func,
              sort='cumulative',
              strip_dirs=False,
              limit_exp=''):
     super(Profile, self).__init__(func)
     base = coreUtils.get_user_temp_dir().joinpath('profile')
     if not base.exists():
         base.mkdir(parents=True)
     log_name = '{0}.{1}'.format(func.__module__, func.__name__)
     profile_path = base.joinpath(log_name + '.profile')
     stats_path = base.joinpath(log_name + '.log')
     # Begin Assignment
     coreUtils.synthesize(self, 'profile', cProfile.Profile())
     coreUtils.synthesize(self, 'sort', sort)
     coreUtils.synthesize(self, 'strip_dirs', strip_dirs)
     coreUtils.synthesize(self, 'limit_exp', limit_exp)
     coreUtils.synthesize(self, 'profile_path', str(profile_path))
     coreUtils.synthesize(self, 'stats_path', str(stats_path))
Example #4
0
 def __init__(self, func, sort='cumulative', strip_dirs=False, limit_exp=''):
     super(Profile, self).__init__(func)
     base = coreUtils.get_user_temp_dir().joinpath('profile')
     if not base.exists():
         base.mkdir(parents=True)
     log_name = '{0}.{1}'.format(func.__module__,
                                 func.__name__)
     profile_path = base.joinpath(log_name + '.profile')
     stats_path = base.joinpath(log_name + '.log')
     # Begin Assignment
     coreUtils.synthesize(self, 'profile', cProfile.Profile())
     coreUtils.synthesize(self, 'sort', sort)
     coreUtils.synthesize(self, 'strip_dirs', strip_dirs)
     coreUtils.synthesize(self, 'limit_exp', limit_exp)
     coreUtils.synthesize(self, 'profile_path', str(profile_path))
     coreUtils.synthesize(self, 'stats_path', str(stats_path))
Example #5
0
 def __init__(self):
     synthesize(self, 'isMainloopAlive', False)
     synthesize(self, 'isPromptloopAlive', False)
Example #6
0
 def __init__(self, daemon=True, **kwds):
     threading.Thread.__init__(self, **kwds)
     Process.__init__(self)
     synthesize(self, 'threadLock', threading.Lock())
     self.setDaemon(daemon)