What IPython mechanisms provide for profiling code and scripts?
I found this interesting thread (March 2013), which offers a definition of custom magic that transfers calls to other Python modules: line-profiler , psutil , memory_profiler .
However, looking at the GitHub discussions, I also found this problem (already closed) , where Fernando, tk, and other major IPython developers discuss the inclusion of default magic in IPython for profiling.
All that said that I could not find the profiling information in the official dev documentation .
I am currently using the main IPython branch. How can I profile this script, for example. foo.py either in turn or by calling a function?
source share