def get_process_list():
    procs = dict()
    for proc in psutil.process_iter():
        try:
            pinfo = proc.as_dict(attrs=['pid', 'cmdline'])
            procs[pinfo['pid']] = pinfo['cmdline'][0]
        except (psutil.NoSuchProcess, IndexError, __HOLE__):
            pass
    return procs
dataset/ETHPy150Open gooddata/smoker/tests/server/test_plugins.py/get_process_list