def add_function(self, func):
        """ Record line profiling information for the given Python function.
        """
        try:
            # func_code does not exist in Python3
            code = func.__code__
        except __HOLE__:
            warnings.warn("Could not extract a code object for the object %r"
                          % func)
        else:
            self.code_map.add(code)
dataset/ETHPy150Open fabianp/memory_profiler/memory_profiler.py/LineProfiler.add_function