@staticmethod
def getStatData(pid):
    """
        Collect the data from /proc/<pid>/stat
        :param pid: The pid to get stats about.
        :return: The known indices as dict.
        """
    name_mapping = {(4): 'pgroup', (5): 'session', (21): 'starttime'}
    path = '/proc/{pid}/stat'.format(pid=pid)
    with open(path, 'r') as fi:
        raw_data = fi.read().strip().split()
        data = {}
        for index, name in name_mapping.items():
            data[name] = raw_data[index]
        return data
