I have a Tornado application, and sometimes someone adds code that blocks the wrong time.
How to detect such functions, maybe even write down which handler / coprocessor method is blocked for a longer time than, say, 50 ms?
I look at _make_coroutine_wrapper() in tornado.gen and see no way to cut, except changing the source - this is fine for one-time debugging, but is there a better way?
source share