'Get stats of a running processes.'

def __get_process_stats(self, proc, mandatory_stats=True, standard_stats=True, extended_stats=False):

    procstat = proc.as_dict(attrs=['pid'])
    if mandatory_stats:
        procstat = self.__get_mandatory_stats(proc, procstat)
    if ((procstat is not None) and standard_stats):
        procstat = self.__get_standard_stats(proc, procstat)
    if ((procstat is not None) and extended_stats and (not self.disable_extended_tag)):
        procstat = self.__get_extended_stats(proc, procstat)
    return procstat
