def record_line(self, frame, event, arg):  
if event == '<STR_LIT>':<EOL><INDENT>if self.prev_timestamp:<EOL><INDENT>runtime = time.time() - self.prev_timestamp<EOL>self.lines.append([self.prev_path, self.prev_lineno, runtime])<EOL><DEDENT>self.prev_lineno = frame.f_lineno<EOL>self.prev_path = frame.f_code.co_filename<EOL>self.prev_timestamp = time.time()<EOL><DEDENT>return self.record_line<EOL>
Records line execution time.