def init_stats(args, start_time): """Returns dictionary with target independent statistics. """ return { "float": {}, "int": {"cores": multiprocessing.cpu_count(), "time": int(time.time()), "start_time": int(round(start_time))}, "normal": { "debug": str(args.debug), "analyzer": args.analyzer, "machine": platform.machine(), "node": platform.node(), "project": utils.decode(os.path.basename(os.getcwd())), "revision": utils.vcs_revision(), "branch": utils.vcs_branch(), "system": platform.system(), "infer_version": utils.infer_version(), "infer_branch": utils.infer_branch(), }, }
def init_stats(args, start_time): """Returns dictionary with target independent statistics. """ return { 'float': {}, 'int': { 'cores': multiprocessing.cpu_count(), 'time': int(time.time()), 'start_time': int(round(start_time)), }, 'normal': { 'debug': str(args.debug), 'analyzer': args.analyzer, 'machine': platform.machine(), 'node': platform.node(), 'project': os.path.basename(os.getcwd()), 'revision': utils.vcs_revision(), 'branch': utils.vcs_branch(), 'system': platform.system(), 'infer_version': utils.infer_version(), 'infer_branch': utils.infer_branch(), } }
def init_stats(args, start_time): """Returns dictionary with target independent statistics. """ return { 'float': {}, 'int': { 'cores': multiprocessing.cpu_count(), 'time': int(time.time()), 'start_time': int(round(start_time)), }, 'normal': { 'debug': str(args.debug), 'analyzer': args.analyzer, 'machine': platform.machine(), 'node': platform.node(), 'project': utils.decode(os.path.basename(os.getcwd())), 'revision': utils.vcs_revision(), 'branch': utils.vcs_branch(), 'system': platform.system(), 'infer_version': utils.infer_version(), 'infer_branch': utils.infer_branch(), } }