##// END OF EJS Templates
perftest: add an option to invalidate volatile cache...
Pierre-Yves David -
r18239:a95f1d61 default
parent child Browse files
Show More
@@ -261,10 +261,17 b' def perfrevlog(ui, repo, file_, **opts):'
261
261
262 timer(d)
262 timer(d)
263
263
264 @command('perfrevset',[],
264 @command('perfrevset',
265 [('C', 'clear', False, 'clear volatile cache between each call.')],
265 "REVSET")
266 "REVSET")
266 def perfrevset(ui, repo, expr):
267 def perfrevset(ui, repo, expr, clear=False):
267 """benchmark the execution time of a revset"""
268 """benchmark the execution time of a revset
269
270 Use the --clean option if need to evaluate the impact of build volative
271 revisions set cache on the revset execution. Volatile cache hold filtered
272 and obsolete related cache."""
268 def d():
273 def d():
274 if clear:
275 repo.invalidatevolatilesets()
269 repo.revs(expr)
276 repo.revs(expr)
270 timer(d)
277 timer(d)
General Comments 0
You need to be logged in to leave comments. Login now