提交 4343009e authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Use key to avoid comparing Apply nodes.

上级 f251552e
......@@ -573,8 +573,7 @@ class ProfileStats(object):
self.apply_callcount[a]))
del topos
atimes.sort()
atimes.reverse()
atimes.sort(reverse=True, key=lambda t: (t[1], t[3]))
tot = 0
for (f, t, a, nd_id, nb_call) in atimes[:N]:
tot += t
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论