##// 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 timer(d)
975 timer(d)
976 fm.end()
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 @command(b'perfindex', formatteropts)
995 @command(b'perfindex', formatteropts)
979 def perfindex(ui, repo, **opts):
996 def perfindex(ui, repo, **opts):
980 import mercurial.revlog
997 import mercurial.revlog
@@ -86,6 +86,7 b' perfstatus'
86 perfhelper-pathcopies
86 perfhelper-pathcopies
87 find statistic about potential parameters for the
87 find statistic about potential parameters for the
88 'perftracecopies'
88 'perftracecopies'
89 perfignore benchmark operation related to computing ignore
89 perfindex (no help text available)
90 perfindex (no help text available)
90 perflinelogedits
91 perflinelogedits
91 (no help text available)
92 (no help text available)
@@ -166,6 +167,7 b' perfstatus'
166 fncache already up to date
167 fncache already up to date
167 #endif
168 #endif
168 $ hg perfheads
169 $ hg perfheads
170 $ hg perfignore
169 $ hg perfindex
171 $ hg perfindex
170 $ hg perflinelogedits -n 1
172 $ hg perflinelogedits -n 1
171 $ hg perfloadmarkers
173 $ hg perfloadmarkers
General Comments 0
You need to be logged in to leave comments. Login now