Cython line memory monitor