I have a non terminating python program that I debug with
import faulthandler
faulthandler.dump_traceback_later(480,exit=True)
call_very_complicated_python_code()
I want to profile it to gain better understanding which parts are stuck:
$ python -m cProfile -o program.prof my_program.py my_input.txt
- Does
faulhandler
mechanism interfere with the profiling? program.prof
is not always generated.- Any way to solve this?