提交 57516d63 authored 作者: Mohammad Pezeshki's avatar Mohammad Pezeshki

printing is now in file format; tot_time_percent is corrent now.

上级 5b5c2bb3
...@@ -607,7 +607,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False, ...@@ -607,7 +607,7 @@ def debugprint(r, prefix='', depth=-1, done=None, print_type=False,
op_time_percent = (op_time / profile.fct_call_time) * 100 op_time_percent = (op_time / profile.fct_call_time) * 100
tot_time_dict = profile.compute_total_times() tot_time_dict = profile.compute_total_times()
tot_time = tot_time_dict[a] tot_time = tot_time_dict[a]
tot_time_percent = (profile.fct_call_time / max(tot_time_dict.values())) * 100 tot_time_percent = (tot_time_dict[a] / profile.fct_call_time) * 100
if len(a.outputs) == 1: if len(a.outputs) == 1:
print >> file, '%s%s %s%s \'%s\' %s %s %s --> %8.2es %4.1f%% %8.2es %4.1f%%'\ print >> file, '%s%s %s%s \'%s\' %s %s %s --> %8.2es %4.1f%% %8.2es %4.1f%%'\
......
...@@ -119,11 +119,7 @@ def debugprint(obj, depth=-1, print_type=False, ...@@ -119,11 +119,7 @@ def debugprint(obj, depth=-1, print_type=False,
scan_ops.append(r) scan_ops.append(r)
if p != None: if p != None:
# print 'Timing Info\n-----------\n\t \ print >> file, """
# --> <time> <% time> - <total time> <% total time>'
print \
"""
Timing Info Timing Info
----------- -----------
--> <time> <% time> - <total time> <% total time>' --> <time> <% time> - <total time> <% total time>'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论