def hit(self, code, line, duration):
        """
        A line has finished executing.

        code (code)
          container function's code object
        line (int)
          line number of just executed line
        duration (float)
          duration of the line, in seconds
        """
        entry = self.line_dict[line][code]
        entry[0] += 1
        entry[1] += duration
def hit ( self , code , line , duration ) : entry = self . line_dict [ line ] [ code ] entry [ 0 ] += 1 entry [ 1 ] += duration
A line has finished executing.

        code (code)
          container function's code object
        line (int)
          line number of just executed line
        duration (float)
          duration of the line, in seconds