Show More
@@ -1360,6 +1360,8 b' Currently the magic system has the following functions:\\n"""' | |||
|
1360 | 1360 | is generated by a call to the dump_stats() method of profile |
|
1361 | 1361 | objects. The profile is still shown on screen. |
|
1362 | 1362 | |
|
1363 | -q: suppress output to the pager. Best used with -T and/or -D above. | |
|
1364 | ||
|
1363 | 1365 | If you want to run complete programs under the profiler's control, use |
|
1364 | 1366 | '%run -p [prof_opts] filename.py [args to program]' where prof_opts |
|
1365 | 1367 | contains profiler specific options as described here. |
@@ -1374,7 +1376,7 b' Currently the magic system has the following functions:\\n"""' | |||
|
1374 | 1376 | parameter_s = parameter_s.replace('"',r'\"').replace("'",r"\'") |
|
1375 | 1377 | |
|
1376 | 1378 | if user_mode: # regular user call |
|
1377 | opts,arg_str = self.parse_options(parameter_s,'D:l:rs:T:', | |
|
1379 | opts,arg_str = self.parse_options(parameter_s,'D:l:rs:T:q', | |
|
1378 | 1380 | list_all=1) |
|
1379 | 1381 | namespace = self.shell.user_ns |
|
1380 | 1382 | else: # called to run a program by %run -p |
@@ -1438,7 +1440,8 b' Currently the magic system has the following functions:\\n"""' | |||
|
1438 | 1440 | output = stdout_trap.getvalue() |
|
1439 | 1441 | output = output.rstrip() |
|
1440 | 1442 | |
|
1441 | page.page(output) | |
|
1443 | if 'q' not in opts: | |
|
1444 | page.page(output) | |
|
1442 | 1445 | print sys_exit, |
|
1443 | 1446 | |
|
1444 | 1447 | dump_file = opts.D[0] |
General Comments 0
You need to be logged in to leave comments.
Login now