Magic for IPython Notebook - function memory profiling