Function memory cython monitor