def workflow(): profiler = cProfile.Profile() profiler.enable() run_workflow() profiler.disable() stats = pstats.Stats(profiler).sort_stats('ncalls') stats.print_stats()
def run(self): utils.set_exp_metadata(self.conf, save_data = False, expname = 'tmp', subexpname = 'subtmp') utils.runtime_update(self.conf) run_workflow(self.conf) utils.shcmd("fio -name hello -rw=randwrite -size=16mb -fsync=1 -filename {}/data2"\ .format(self.conf['fs_mount_point'])) time.sleep(1) ret = utils.invoke_f2fs_gc(self.conf['fs_mount_point'], 1) assert ret == 0
def run(self): # dict_for_name = {k:v for k,v in self.para._asdict() if k in (' set_exp_metadata(self.conf, save_data=True, expname=self.para.expname, subexpname='subexp-' + str(hash(chain_items_as_filename(self.para)))) runtime_update(self.conf) self.check_config() print self.conf run_workflow(self.conf)
def run(self): runtime_update(self.conf) run_workflow(self.conf)