Hi all,

is there a way to debug the mainloop events execution.
I want to check which functions are causing some delay.
The code is too big to run with a profiler and/or add some decorators in every 
function.

What I would like is to have full control of the main loop, replace it with 
something like

while True:
     event = get_event
     if event:
            tstart = time.time()
            execute event
            print("time executing event", event, time.time() - tstart)

Vasilis
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to