After a long function call (16 hours), I ended it early with KeyboardInterrupt, but accidentally also interrupted cProfile, because it was taking so long to respond. In the Debug Stackviewer, I am faced with this:
Is there any way to recover what cProfile would have printed, and is there a way to more smartly use cProfile for excessively long function calls.
No, all captured information was lost when the process exited. You might consider using the profiling
package that provides profile output while your program runs. I have been intending to use it with some of my interactive programs.