def __init__(self): synthesize(self, 'isMainloopAlive', False) synthesize(self, 'isPromptloopAlive', False)
def __init__(self, daemon=True, **kwds): threading.Thread.__init__(self, **kwds) Process.__init__(self) synthesize(self, 'threadLock', threading.Lock()) self.setDaemon(daemon)
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))