134 ui.popbuffer() |
134 ui.popbuffer() |
135 |
135 |
136 def perfcca(ui, repo): |
136 def perfcca(ui, repo): |
137 timer(lambda: scmutil.casecollisionauditor(ui, False, repo[None])) |
137 timer(lambda: scmutil.casecollisionauditor(ui, False, repo[None])) |
138 |
138 |
|
139 def perffncacheload(ui, repo): |
|
140 from mercurial import scmutil, store |
|
141 s = store.store(set(['store','fncache']), repo.path, scmutil.opener) |
|
142 def d(): |
|
143 s.fncache._load() |
|
144 timer(d) |
|
145 |
|
146 def perffncachewrite(ui, repo): |
|
147 from mercurial import scmutil, store |
|
148 s = store.store(set(['store','fncache']), repo.path, scmutil.opener) |
|
149 s.fncache._load() |
|
150 def d(): |
|
151 s.fncache._dirty = True |
|
152 s.fncache.write() |
|
153 timer(d) |
|
154 |
139 def perfdiffwd(ui, repo): |
155 def perfdiffwd(ui, repo): |
140 """Profile diff of working directory changes""" |
156 """Profile diff of working directory changes""" |
141 options = { |
157 options = { |
142 'w': 'ignore_all_space', |
158 'w': 'ignore_all_space', |
143 'b': 'ignore_space_change', |
159 'b': 'ignore_space_change', |
163 |
179 |
164 timer(d) |
180 timer(d) |
165 |
181 |
166 cmdtable = { |
182 cmdtable = { |
167 'perfcca': (perfcca, []), |
183 'perfcca': (perfcca, []), |
|
184 'perffncacheload': (perffncacheload, []), |
|
185 'perffncachewrite': (perffncachewrite, []), |
168 'perflookup': (perflookup, []), |
186 'perflookup': (perflookup, []), |
169 'perfnodelookup': (perfnodelookup, []), |
187 'perfnodelookup': (perfnodelookup, []), |
170 'perfparents': (perfparents, []), |
188 'perfparents': (perfparents, []), |
171 'perfstartup': (perfstartup, []), |
189 'perfstartup': (perfstartup, []), |
172 'perfstatus': (perfstatus, []), |
190 'perfstatus': (perfstatus, []), |