def parse_gptl(file_path, var_list):
timing_result = dict()<EOL>if os.path.isfile(file_path):<EOL><INDENT>with open(file_path, '<STR_LIT:r>') as f:<EOL><INDENT>for var in var_list:<EOL><INDENT>for line in f:<EOL><INDENT>if var in line:<EOL><INDENT>timing_result[var] = float(line.split()[<NUM_LIT:4>])/int(line.split()[<NUM_LIT:2>])<EOL>break<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>return timing_result<EOL>
Read a GPTL timing file and extract some data.

Args:
    file_path: the path to the GPTL timing file
    var_list: a list of strings to look for in the file

Returns:
    A dict containing key-value pairs of the livvkit
    and the times associated with them