##// END OF EJS Templates
Cleaning up the IPython docs. I have removed old README files that were outdated and being maintained...
Cleaning up the IPython docs. I have removed old README files that were outdated and being maintained in the top-level dir. I have removed all mentions of the old lyx based docs. Created subdirectories for man and emacs stuff. Having fun.

File last commit:

r1049:c87d640e
r1250:f658828f
Show More
run_ipy_in_profiler.py
16 lines | 423 B | text/x-python | PythonLexer
/ tools / run_ipy_in_profiler.py
import cProfile as profile
import sys
#import profile
def main():
import IPython.ipapi
print "Entering ipython for profiling. Type 'Exit' for profiler report"
IPython.ipapi.launch_new_instance()
if len(sys.argv) == 1:
profile.run('main()', 'ipython_profiler_results')
import pstats
p = pstats.Stats(len(sys.argv) >1 and sys.argv[1] or 'ipython_profiler_results')
p.sort_stats('time').print_stats(30)