Idle time in callbacks

Hi,

On every value change, the update takes lot of time to load. So, I have profiled on the web browser, and noticed huge idle time.
I am not pausing anything. Has anybody faced this issue ?

Thank you for your help.

Is not the idle time the period when calculations are done in the callback on the server? Browser is idle, because it waits for server to send it the new data.

Even if it’s the calculations, my data is a matrix of 100 by 10. Not that much to take too much time to visualize in my opinion.
Is it possible to profile python ?

you can use cProfile to profile your calculations

pr = cProfile.Profile()
pr.enable()
do_something_very_difficult()
pr.disable()
pr.print_stats(sort="cumtime")
2 Likes

Thanks.
Results are the following:

posix.waitpid seem to be the origin of the issue… Any idea why ? Thank you.

Problem solved, it was indeed a computation issue…

2 Likes