提交 fc5cc444 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix error in displaying profile_mode's results

上级 4165e738
......@@ -246,8 +246,8 @@ class ProfileMode(Mode):
print ' %4.1f%% %.3fs %.3fs %s %d %s' % (f*100, tot, t, msg, nb_call, a)
print ' ... (remaining %i Ops account for %.2f%%(%.2fs) of the runtime)'\
%(max(0, len(sotimes)-n_ops_to_print),
sum(f for f, t, a, nb_call in sotimes[n_ops_to_print:])*100,
sum(t for f, t, a, nb_call in sotimes[n_ops_to_print:]))
sum(f for f, t, a, ci, nb_call in sotimes[n_ops_to_print:])*100,
sum(t for f, t, a, ci, nb_call in sotimes[n_ops_to_print:]))
print '(*) Op is running a c implementation'
print 'compile time: %.3fs'%compile_time
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论