Show More
@@ -360,12 +360,14 b' class ExecutionMagics(Magics):' | |||||
360 | text_file = opts.T[0] |
|
360 | text_file = opts.T[0] | |
361 | if dump_file: |
|
361 | if dump_file: | |
362 | prof.dump_stats(dump_file) |
|
362 | prof.dump_stats(dump_file) | |
363 | print('\n*** Profile stats marshalled to file',\ |
|
363 | print( | |
364 |
repr(dump_file) |
|
364 | f"\n*** Profile stats marshalled to file {repr(dump_file)}.{sys_exit}" | |
|
365 | ) | |||
365 | if text_file: |
|
366 | if text_file: | |
366 | Path(text_file).write_text(output) |
|
367 | Path(text_file).write_text(output) | |
367 | print('\n*** Profile printout saved to text file',\ |
|
368 | print( | |
368 |
repr(text_file) |
|
369 | f"\n*** Profile printout saved to text file {repr(text_file)}.{sys_exit}" | |
|
370 | ) | |||
369 |
|
371 | |||
370 | if 'r' in opts: |
|
372 | if 'r' in opts: | |
371 | return stats |
|
373 | return stats |
General Comments 0
You need to be logged in to leave comments.
Login now