def getProcessStats(self):
info_dict = {}<EOL>try:<EOL><INDENT>fp = open(cpustatFile, '<STR_LIT:r>')<EOL>data = fp.read()<EOL>fp.close()<EOL><DEDENT>except:<EOL><INDENT>raise IOError('<STR_LIT>' % cpustatFile)<EOL><DEDENT>for line in data.splitlines():<EOL><INDENT>arr = line.split()<EOL>if len(arr) > <NUM_LIT:1> and arr[<NUM_LIT:0>] in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>', '<STR_LIT>', <EOL>'<STR_LIT>'):<EOL><INDENT>info_dict[arr[<NUM_LIT:0>]] = arr[<NUM_LIT:1>]<EOL><DEDENT><DEDENT>return info_dict<EOL>
Return stats for running and blocked processes, forks, 
        context switches and interrupts.

        @return: Dictionary of stats.