[docs] [issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)