def getProcessStatus(self):
info_dict = {}<EOL>cur = self._conn.cursor()<EOL>cur.execute("""<STR_LIT>""")<EOL>rows = cur.fetchall()<EOL>if rows:<EOL><INDENT>for row in rows:<EOL><INDENT>if row[<NUM_LIT:6>] == '<STR_LIT>':<EOL><INDENT>state = '<STR_LIT>'<EOL><DEDENT>elif row[<NUM_LIT:6>] is None:<EOL><INDENT>state = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>state = str(row[<NUM_LIT:6>]).replace('<STR_LIT:U+0020>', '<STR_LIT:_>').lower()<EOL><DEDENT>info_dict[state] = info_dict.get(state, <NUM_LIT:0>) + <NUM_LIT:1><EOL><DEDENT><DEDENT>return info_dict<EOL>
Returns number of processes discriminated by state.

        @return: Dictionary mapping process state to number of processes.