code: def add_function(self, func):
          
          try:
              # func_code does not exist in Python3
              code = func.__code__
          except AttributeError:
              import warnings
              warnings.warn("Could not extract a code object for the object %r"
                            % (func,))
              return
          if code not in self.code_map:
              self.code_map[code] = {}
              self.functions.append(func)
docs: Record line profiling information for the given Python function.