D5172: statprof: update the name as the i increases (issue6003)
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Oct 20 03:14:01 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4613f9274fc0: statprof: update the name as the i increases (issue6003) (authored by pulkit, committed by ).
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D5172?vs=12280&id=12289#toc
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5172?vs=12280&id=12289
REVISION DETAIL
https://phab.mercurial-scm.org/D5172
AFFECTED FILES
mercurial/statprof.py
tests/test-profile.t
CHANGE DETAILS
diff --git a/tests/test-profile.t b/tests/test-profile.t
--- a/tests/test-profile.t
+++ b/tests/test-profile.t
@@ -89,6 +89,8 @@
$ hg --profile --config profiling.statformat=byline sleep 2>../out
$ head -n 3 ../out
% cumulative self
+ time seconds seconds name
+ * sleepext.py:*:sleep (glob)
$ cat ../out | statprofran
$ hg --profile --config profiling.statformat=bymethod sleep 2>../out
diff --git a/mercurial/statprof.py b/mercurial/statprof.py
--- a/mercurial/statprof.py
+++ b/mercurial/statprof.py
@@ -664,6 +664,7 @@
name = r'%s:%s' % (stack[i].filename(), stack[i].function)
while i < len(stack) and name in skips:
i += 1
+ name = r'%s:%s' % (stack[i].filename(), stack[i].function)
if i < len(stack):
child.add(stack[i:], time)
To: pulkit, #hg-reviewers
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list