mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add a fake event in asyncio graph in order to correctly detect execution start (PY-17298)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user