How can I measure the speed of a certain code in my kivy program?
I've got a function, that adds ten screens by using a dict, pictures and screenmanager, and that takes more then 5 seconds. I would like to find out, what is the slowest part of this function.
line_profiler
(described here) sounds good, but if I run it, my application window stays black, no widgets are drawed and so I couldn't click on some buttons.
Which are the best methods?