提交 eeb09122 authored 作者: Frederic's avatar Frederic

Fix crash in debugmode when profiling is enabled by the fct wasn't run yet

上级 eeb7c04a
...@@ -585,7 +585,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False, ...@@ -585,7 +585,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
already_printed = a in done # get_id_str put it in the dict already_printed = a in done # get_id_str put it in the dict
id_str = get_id_str(a) id_str = get_id_str(a)
if profile == None: if profile == None or a not in profile.apply_time:
if len(a.outputs) == 1: if len(a.outputs) == 1:
print >> file, '%s%s %s%s \'%s\' %s %s %s' % (prefix, a.op, print >> file, '%s%s %s%s \'%s\' %s %s %s' % (prefix, a.op,
id_str, id_str,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论