##// END OF EJS Templates
run_ipy_in_profiler.py added
vivainio -
Show More
@@ -0,0 +1,16 b''
1 import cProfile as profile
2 import sys
3 #import profile
4
5 def main():
6 import IPython.ipapi
7 print "Entering ipython for profiling. Type 'Exit' for profiler report"
8 IPython.ipapi.launch_new_instance()
9
10 if len(sys.argv) == 1:
11 profile.run('main()', 'ipython_profiler_results')
12
13 import pstats
14 p = pstats.Stats(len(sys.argv) >1 and sys.argv[1] or 'ipython_profiler_results')
15 p.sort_stats('time').print_stats(30)
16
@@ -3,6 +3,9 b''
3 * ipmaker.py: more informative message when ipy_user_conf
3 * ipmaker.py: more informative message when ipy_user_conf
4 import fails (suggest running %upgrade).
4 import fails (suggest running %upgrade).
5
5
6 * tools/run_ipy_in_profiler.py: Utility to see where
7 the time during IPython startup is spent.
8
6 2006-12-20 Ville Vainio <vivainio@gmail.com>
9 2006-12-20 Ville Vainio <vivainio@gmail.com>
7
10
8 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
11 * 0.7.3 is out - merge all from 0.7.3 branch to trunk
General Comments 0
You need to be logged in to leave comments. Login now