Show More
@@ -125,13 +125,21 b' contextmanager = contextlib.contextmanag' | |||||
125 |
|
125 | |||
126 | __all__ = ['start', 'stop', 'reset', 'display', 'profile'] |
|
126 | __all__ = ['start', 'stop', 'reset', 'display', 'profile'] | |
127 |
|
127 | |||
128 | skips = {"util.py:check", "extensions.py:closure", |
|
128 | skips = { | |
129 | "color.py:colorcmd", "dispatch.py:checkargs", |
|
129 | r"util.py:check", | |
130 | "dispatch.py:<lambda>", "dispatch.py:_runcatch", |
|
130 | r"extensions.py:closure", | |
131 | "dispatch.py:_dispatch", "dispatch.py:_runcommand", |
|
131 | r"color.py:colorcmd", | |
132 | "pager.py:pagecmd", "dispatch.py:run", |
|
132 | r"dispatch.py:checkargs", | |
133 | "dispatch.py:dispatch", "dispatch.py:runcommand", |
|
133 | r"dispatch.py:<lambda>", | |
134 | "hg.py:<module>", "evolve.py:warnobserrors", |
|
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 | if len(stack) > 1: |
|
655 | if len(stack) > 1: | |
648 | i = 1 |
|
656 | i = 1 | |
649 | # Skip boiler plate parts of the stack |
|
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 | i += 1 |
|
660 | i += 1 | |
652 | if i < len(stack): |
|
661 | if i < len(stack): | |
653 | child.add(stack[i:], time) |
|
662 | child.add(stack[i:], time) |
General Comments 0
You need to be logged in to leave comments.
Login now