##// END OF EJS Templates
perf: add a perfignore command...
Boris Feld -
r40781:45a0047c default
parent child Browse files
Show More
@@ -975,6 +975,23 b' def perfchangeset(ui, repo, rev, **opts)'
975 975 timer(d)
976 976 fm.end()
977 977
978 @command(b'perfignore', formatteropts)
979 def perfignore(ui, repo, **opts):
980 """benchmark operation related to computing ignore"""
981 opts = _byteskwargs(opts)
982 timer, fm = gettimer(ui, opts)
983 dirstate = repo.dirstate
984
985 def setupone():
986 dirstate.invalidate()
987 clearfilecache(dirstate, b'_ignore')
988
989 def runone():
990 dirstate._ignore
991
992 timer(runone, setup=setupone, title=b"load")
993 fm.end()
994
978 995 @command(b'perfindex', formatteropts)
979 996 def perfindex(ui, repo, **opts):
980 997 import mercurial.revlog
@@ -86,6 +86,7 b' perfstatus'
86 86 perfhelper-pathcopies
87 87 find statistic about potential parameters for the
88 88 'perftracecopies'
89 perfignore benchmark operation related to computing ignore
89 90 perfindex (no help text available)
90 91 perflinelogedits
91 92 (no help text available)
@@ -166,6 +167,7 b' perfstatus'
166 167 fncache already up to date
167 168 #endif
168 169 $ hg perfheads
170 $ hg perfignore
169 171 $ hg perfindex
170 172 $ hg perflinelogedits -n 1
171 173 $ hg perfloadmarkers
General Comments 0
You need to be logged in to leave comments. Login now