##// END OF EJS Templates
fixed permissions (sub-modules should not be executable) + added shebang for run_ipy_in_profiler.py
Yaroslav Halchenko -
Show More
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
1 NO CONTENT: modified file chmod 100755 => 100644
NO CONTENT: modified file chmod 100755 => 100644
@@ -1,22 +1,23 b''
1 #!/usr/bin/env python
1 """XXX - What exactly is the use of this script?
2 """XXX - What exactly is the use of this script?
2
3
3 I (fperez) tried it quickly and it doesn't work in its current form. Either it
4 I (fperez) tried it quickly and it doesn't work in its current form. Either it
4 needs to be fixed and documented or removed.
5 needs to be fixed and documented or removed.
5 """
6 """
6
7
7 import cProfile as profile
8 import cProfile as profile
8 import sys
9 import sys
9 #import profile
10 #import profile
10
11
11 def main():
12 def main():
12 import IPython.ipapi
13 import IPython.ipapi
13 print "Entering ipython for profiling. Type 'Exit' for profiler report"
14 print "Entering ipython for profiling. Type 'Exit' for profiler report"
14 IPython.ipapi.launch_new_instance()
15 IPython.ipapi.launch_new_instance()
15
16
16 if len(sys.argv) == 1:
17 if len(sys.argv) == 1:
17 profile.run('main()', 'ipython_profiler_results')
18 profile.run('main()', 'ipython_profiler_results')
18
19
19 import pstats
20 import pstats
20 p = pstats.Stats(len(sys.argv) >1 and sys.argv[1] or 'ipython_profiler_results')
21 p = pstats.Stats(len(sys.argv) >1 and sys.argv[1] or 'ipython_profiler_results')
21 p.sort_stats('time').print_stats(30)
22 p.sort_stats('time').print_stats(30)
22
23
General Comments 0
You need to be logged in to leave comments. Login now