Show More
@@ -136,6 +136,22 b' def perftemplating(ui, repo):' | |||||
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 = { | |
@@ -165,6 +181,8 b' def perfrevlog(ui, repo, file_, **opts):' | |||||
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, []), |
General Comments 0
You need to be logged in to leave comments.
Login now