Show More
@@ -195,6 +195,16 b' def perffncachewrite(ui, repo):' | |||||
195 | s.fncache.write() |
|
195 | s.fncache.write() | |
196 | timer(d) |
|
196 | timer(d) | |
197 |
|
197 | |||
|
198 | def perffncacheencode(ui, repo): | |||
|
199 | from mercurial import store | |||
|
200 | s = store.store(set(['store','fncache','dotencode']), | |||
|
201 | repo.path, scmutil.opener) | |||
|
202 | s.fncache._load() | |||
|
203 | def d(): | |||
|
204 | for p in s.fncache.entries: | |||
|
205 | s.encode(p) | |||
|
206 | timer(d) | |||
|
207 | ||||
198 | def perfdiffwd(ui, repo): |
|
208 | def perfdiffwd(ui, repo): | |
199 | """Profile diff of working directory changes""" |
|
209 | """Profile diff of working directory changes""" | |
200 | options = { |
|
210 | options = { | |
@@ -226,6 +236,7 b' cmdtable = {' | |||||
226 | 'perfcca': (perfcca, []), |
|
236 | 'perfcca': (perfcca, []), | |
227 | 'perffncacheload': (perffncacheload, []), |
|
237 | 'perffncacheload': (perffncacheload, []), | |
228 | 'perffncachewrite': (perffncachewrite, []), |
|
238 | 'perffncachewrite': (perffncachewrite, []), | |
|
239 | 'perffncacheencode': (perffncacheencode, []), | |||
229 | 'perflookup': (perflookup, []), |
|
240 | 'perflookup': (perflookup, []), | |
230 | 'perfrevrange': (perfrevrange, []), |
|
241 | 'perfrevrange': (perfrevrange, []), | |
231 | 'perfnodelookup': (perfnodelookup, []), |
|
242 | 'perfnodelookup': (perfnodelookup, []), |
General Comments 0
You need to be logged in to leave comments.
Login now