Show More
@@ -278,7 +278,7 b' def perfrevset(ui, repo, expr, clear=Fal' | |||||
278 | timer(d) |
|
278 | timer(d) | |
279 |
|
279 | |||
280 | @command('perfvolatilesets') |
|
280 | @command('perfvolatilesets') | |
281 | def perfvolatilesets(ui, repo): |
|
281 | def perfvolatilesets(ui, repo, *names): | |
282 | """benchmark the computation of various volatile set |
|
282 | """benchmark the computation of various volatile set | |
283 |
|
283 | |||
284 | Volatile set computes element related to filtering and obsolescence.""" |
|
284 | Volatile set computes element related to filtering and obsolescence.""" | |
@@ -290,7 +290,11 b' def perfvolatilesets(ui, repo):' | |||||
290 | obsolete.getrevs(repo, name) |
|
290 | obsolete.getrevs(repo, name) | |
291 | return d |
|
291 | return d | |
292 |
|
292 | |||
293 |
|
|
293 | allobs = sorted(obsolete.cachefuncs) | |
|
294 | if names: | |||
|
295 | allobs = [n for n in allobs if n in names] | |||
|
296 | ||||
|
297 | for name in allobs: | |||
294 | timer(getobs(name), title=name) |
|
298 | timer(getobs(name), title=name) | |
295 |
|
299 | |||
296 | def getfiltered(name): |
|
300 | def getfiltered(name): | |
@@ -299,5 +303,9 b' def perfvolatilesets(ui, repo):' | |||||
299 | repoview.filteredrevs(repo, name) |
|
303 | repoview.filteredrevs(repo, name) | |
300 | return d |
|
304 | return d | |
301 |
|
305 | |||
302 |
|
|
306 | allfilter = sorted(repoview.filtertable) | |
|
307 | if names: | |||
|
308 | allfilter = [n for n in allfilter if n in names] | |||
|
309 | ||||
|
310 | for name in allfilter: | |||
303 | timer(getfiltered(name), title=name) |
|
311 | timer(getfiltered(name), title=name) |
General Comments 0
You need to be logged in to leave comments.
Login now