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