示例#1
0
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(),
        },
    }
示例#2
0
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(),
        }
    }
示例#3
0
文件: bucklib.py 项目: HKingz/infer
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(),
        }
    }