def get_cpu_timings(self):
timings = {}<EOL>with open('<STR_LIT>', '<STR_LIT:r>') as file_obj:<EOL><INDENT>for line in file_obj:<EOL><INDENT>if '<STR_LIT>' in line:<EOL><INDENT>line = line.strip().split()<EOL>timings[line[<NUM_LIT:0>]] = [int(x) for x in line[<NUM_LIT:1>:]]<EOL><DEDENT><DEDENT><DEDENT>return timings<EOL>
reads and parses /proc/stat
returns dictionary with all available cores including global average