comparison mercurial/statprof.py @ 35413:c8e8e14a5ee9

statprof: remove a line of deadcode Differential Revision: https://phab.mercurial-scm.org/D1689
author Alex Gaynor <agaynor@mozilla.com>
date Thu, 14 Dec 2017 20:18:15 +0000
parents c5853c9a6545
children aac4be30e250
comparison
equal deleted inserted replaced
35412:b1959391a088 35413:c8e8e14a5ee9
813 813
814 for sample in data.samples: 814 for sample in data.samples:
815 tos = sample.stack[0] 815 tos = sample.stack[0]
816 name = tos.function 816 name = tos.function
817 path = simplifypath(tos.path) 817 path = simplifypath(tos.path)
818 category = '%s:%d' % (path, tos.lineno)
819 stack = tuple((('%s:%d' % (simplifypath(frame.path), frame.lineno), 818 stack = tuple((('%s:%d' % (simplifypath(frame.path), frame.lineno),
820 frame.function) for frame in sample.stack)) 819 frame.function) for frame in sample.stack))
821 qstack = collections.deque(stack) 820 qstack = collections.deque(stack)
822 if laststack == qstack: 821 if laststack == qstack:
823 continue 822 continue