Show More
@@ -125,13 +125,21 b' contextmanager = contextlib.contextmanag' | |||
|
125 | 125 | |
|
126 | 126 | __all__ = ['start', 'stop', 'reset', 'display', 'profile'] |
|
127 | 127 | |
|
128 | skips = {"util.py:check", "extensions.py:closure", | |
|
129 | "color.py:colorcmd", "dispatch.py:checkargs", | |
|
130 | "dispatch.py:<lambda>", "dispatch.py:_runcatch", | |
|
131 | "dispatch.py:_dispatch", "dispatch.py:_runcommand", | |
|
132 | "pager.py:pagecmd", "dispatch.py:run", | |
|
133 | "dispatch.py:dispatch", "dispatch.py:runcommand", | |
|
134 | "hg.py:<module>", "evolve.py:warnobserrors", | |
|
128 | skips = { | |
|
129 | r"util.py:check", | |
|
130 | r"extensions.py:closure", | |
|
131 | r"color.py:colorcmd", | |
|
132 | r"dispatch.py:checkargs", | |
|
133 | r"dispatch.py:<lambda>", | |
|
134 | r"dispatch.py:_runcatch", | |
|
135 | r"dispatch.py:_dispatch", | |
|
136 | r"dispatch.py:_runcommand", | |
|
137 | r"pager.py:pagecmd", | |
|
138 | r"dispatch.py:run", | |
|
139 | r"dispatch.py:dispatch", | |
|
140 | r"dispatch.py:runcommand", | |
|
141 | r"hg.py:<module>", | |
|
142 | r"evolve.py:warnobserrors", | |
|
135 | 143 | } |
|
136 | 144 | |
|
137 | 145 | ########################################################################### |
@@ -647,7 +655,8 b' def display_hotpath(data, fp, limit=0.05' | |||
|
647 | 655 | if len(stack) > 1: |
|
648 | 656 | i = 1 |
|
649 | 657 | # Skip boiler plate parts of the stack |
|
650 |
|
|
|
658 | name = r'%s:%s' % (stack[i].filename(), stack[i].function) | |
|
659 | while i < len(stack) and name in skips: | |
|
651 | 660 | i += 1 |
|
652 | 661 | if i < len(stack): |
|
653 | 662 | child.add(stack[i:], time) |
General Comments 0
You need to be logged in to leave comments.
Login now