Add a fake event in asyncio graph in order to correctly detect execution start (PY-17298)

This commit is contained in:
Elizaveta Shashkova
2015-10-26 19:59:45 +03:00
parent 17cb4e06a7
commit f08b02f36d
+4
View File
@@ -1762,6 +1762,10 @@ class PyDB:
self.thread_analyser.set_start_time(cur_time())
send_message("threading_event", 0, t.getName(), GetThreadId(t), "thread", "start", file, 1, None, parent=GetThreadId(t))
if self.asyncio_analyser is not None:
# we don't have main thread in asyncio graph, so we should add a fake event
send_message("asyncio_event", 0, "Task", "Task", "thread", "stop", file, 1, frame=None, parent=None)
try:
self.init_matplotlib_support()
except: