##// END OF EJS Templates
perf: add a command to measure revset performance
Siddharth Agarwal -
r18062:1471f5e8 default
parent child Browse files
Show More
@@ -228,6 +228,11 b' def perfrevlog(ui, repo, file_, **opts):'
228
228
229 timer(d)
229 timer(d)
230
230
231 def perfrevset(ui, repo, expr):
232 def d():
233 repo.revs(expr)
234 timer(d)
235
231 cmdtable = {
236 cmdtable = {
232 'perfcca': (perfcca, []),
237 'perfcca': (perfcca, []),
233 'perffncacheload': (perffncacheload, []),
238 'perffncacheload': (perffncacheload, []),
@@ -258,4 +263,5 b' cmdtable = {'
258 'perfrevlog': (perfrevlog,
263 'perfrevlog': (perfrevlog,
259 [('d', 'dist', 100, 'distance between the revisions')],
264 [('d', 'dist', 100, 'distance between the revisions')],
260 "[INDEXFILE]"),
265 "[INDEXFILE]"),
266 'perfrevset': (perfrevset, [], "REVSET")
261 }
267 }
General Comments 0
You need to be logged in to leave comments. Login now