

def _estimate_memory_utilization(self, process_dict):
    'Estimates memory utilization to come if process was started'
    n_processes = len(process_dict)
    total_utilization = psutil.virtual_memory().percent
    sum = 0.0
    for proc in compat.itervalues(process_dict):
        try:
            sum += psutil.Process(proc.pid).memory_percent()
        except (psutil.NoSuchProcess, ZeroDivisionError):
            pass
    curr_all_processes = self
    missing_utilization = max(0.0, ((n_processes * self._est_per_process) - curr_all_processes))
    estimated_utilization = total_utilization
    estimated_utilization += missing_utilization
    estimated_utilization += self._est_per_process
    return estimated_utilization

dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py Environment._estimate_memory_utilization/VarMisuse@84/132 `sum`->`self`