##// END OF EJS Templates
statprof: update the name as the i increases (issue6003)...
Pulkit Goyal -
r40417:4613f927 default
parent child Browse files
Show More
@@ -664,6 +664,7 b' def display_hotpath(data, fp, limit=0.05'
664 name = r'%s:%s' % (stack[i].filename(), stack[i].function)
664 name = r'%s:%s' % (stack[i].filename(), stack[i].function)
665 while i < len(stack) and name in skips:
665 while i < len(stack) and name in skips:
666 i += 1
666 i += 1
667 name = r'%s:%s' % (stack[i].filename(), stack[i].function)
667 if i < len(stack):
668 if i < len(stack):
668 child.add(stack[i:], time)
669 child.add(stack[i:], time)
669
670
@@ -89,6 +89,8 b' Various statprof formatters work'
89 $ hg --profile --config profiling.statformat=byline sleep 2>../out
89 $ hg --profile --config profiling.statformat=byline sleep 2>../out
90 $ head -n 3 ../out
90 $ head -n 3 ../out
91 % cumulative self
91 % cumulative self
92 time seconds seconds name
93 * sleepext.py:*:sleep (glob)
92 $ cat ../out | statprofran
94 $ cat ../out | statprofran
93
95
94 $ hg --profile --config profiling.statformat=bymethod sleep 2>../out
96 $ hg --profile --config profiling.statformat=bymethod sleep 2>../out
General Comments 0
You need to be logged in to leave comments. Login now