未验证 提交 4956520c 编写于 作者: C chenjian 提交者: GitHub

do not crash vdl when logdir is missing (#1149)

上级 da5be6cc
......@@ -66,8 +66,9 @@ class ProfilerReader(object):
self.run_managers = {}
self.profile_result_queue = Queue()
self.tempfile = None
self.runs()
Thread(target=self._get_data_from_queue, args=()).start()
if logdir:
self.runs()
Thread(target=self._get_data_from_queue, args=()).start()
@property
def logdir(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册