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