Sorry if this might sound silly but I can’t find a definitive answer to my problem online:
I have got a fairly complivate UI built with PySide6 that I use in my application to input data that is then used to calculate some results.
The computation itself is executed in a separate thread implementing a Qrunnable for it (to avoid blocking the UI while calculating).
I am at the point where the calculation are working as intended but I would like to perform profiling on the “long running” Qrunnable to see where most of the time is spent and to see if some refactoring could help in speeding up the code.
Is there a way to profile the calculation routine without having to abstract it from the UI? As I said the inputs are quite complicated and I would like to use the UI to set the desired values