提交 05de6eca authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Use ScanProfileStats.callcount to see if it is used

rather than fct_callcount, which stays at 0
上级 6bfc2ac9
......@@ -63,7 +63,8 @@ def _atexit_print_fn():
# Reverse sort in the order of compile+exec time
for ps in sorted(_atexit_print_list,
key=lambda a:a.compile_time + a.fct_call_time)[::-1]:
if ps.fct_callcount >= 1 or ps.compile_time > 1:
if (ps.fct_callcount >= 1 or ps.compile_time > 1 or
getattr(ps, 'callcount', 0) > 1):
ps.summary(file=destination_file,
n_ops_to_print=config.profiling.n_ops,
n_apply_to_print=config.profiling.n_apply)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论