Show More
@@ -1,4 +1,4 b'' | |||||
1 |
#require test-repo |
|
1 | #require test-repo | |
2 |
|
2 | |||
3 | Set vars: |
|
3 | Set vars: | |
4 |
|
4 | |||
@@ -32,6 +32,10 b' perfstatus' | |||||
32 | $ cat >> $HGRCPATH << EOF |
|
32 | $ cat >> $HGRCPATH << EOF | |
33 | > [extensions] |
|
33 | > [extensions] | |
34 | > perfstatusext=$CONTRIBDIR/perf.py |
|
34 | > perfstatusext=$CONTRIBDIR/perf.py | |
|
35 | > [perf] | |||
|
36 | > presleep=0 | |||
|
37 | > stub=on | |||
|
38 | > parentscount=1 | |||
35 | > EOF |
|
39 | > EOF | |
36 | $ hg help perfstatusext |
|
40 | $ hg help perfstatusext | |
37 | perfstatusext extension - helper extension to measure performance |
|
41 | perfstatusext extension - helper extension to measure performance | |
@@ -99,82 +103,46 b' perfstatus' | |||||
99 | perfwalk (no help text available) |
|
103 | perfwalk (no help text available) | |
100 |
|
104 | |||
101 | (use "hg help -v perfstatusext" to show built-in aliases and global options) |
|
105 | (use "hg help -v perfstatusext" to show built-in aliases and global options) | |
102 | $ filter_perf_output () { |
|
106 | $ hg perfaddremove | |
103 | > egrep -v 'wall' || true |
|
107 | $ hg perfancestors | |
104 | > } |
|
108 | $ hg perfancestorset 2 | |
105 | $ hg perfaddremove 2>&1 | filter_perf_output |
|
109 | $ hg perfannotate a | |
106 | $ hg perfancestors 2>&1 | filter_perf_output |
|
110 | $ hg perfbranchmap | |
107 | $ hg perfancestorset 2 2>&1 | filter_perf_output |
|
111 | $ hg perfcca | |
108 | $ hg perfannotate a 2>&1 | filter_perf_output |
|
112 | $ hg perfchangeset 2 | |
109 | ! result: 3 |
|
113 | $ hg perfctxfiles 2 | |
110 | $ hg perfbranchmap 2>&1 | filter_perf_output |
|
114 | $ hg perfdiffwd | |
111 | ! base |
|
115 | $ hg perfdirfoldmap | |
112 | ! immutable |
|
116 | $ hg perfdirs | |
113 | ! served |
|
117 | $ hg perfdirstate | |
114 | ! visible |
|
118 | $ hg perfdirstatedirs | |
115 | ! None |
|
119 | $ hg perfdirstatefoldmap | |
116 | $ hg perfcca 2>&1 | filter_perf_output |
|
120 | $ hg perfdirstatewrite | |
117 | ! result: <mercurial.scmutil.casecollisionauditor object at 0x*> (glob) |
|
121 | $ hg perffncacheencode | |
118 | $ hg perfchangeset 2 2>&1 | filter_perf_output |
|
122 | $ hg perffncacheload | |
119 | $ hg perfctxfiles 2 2>&1 | filter_perf_output |
|
123 | $ hg perffncachewrite | |
120 | $ hg perfdiffwd 2>&1 | filter_perf_output |
|
|||
121 | ! diffopts: none |
|
|||
122 | ! diffopts: -w |
|
|||
123 | ! diffopts: -b |
|
|||
124 | ! diffopts: -B |
|
|||
125 | ! diffopts: -wB |
|
|||
126 | $ hg perfdirfoldmap 2>&1 | filter_perf_output |
|
|||
127 | $ hg perfdirs 2>&1 | filter_perf_output |
|
|||
128 | $ hg perfdirstate 2>&1 | filter_perf_output |
|
|||
129 | $ hg perfdirstatedirs 2>&1 | filter_perf_output |
|
|||
130 | $ hg perfdirstatefoldmap 2>&1 | filter_perf_output |
|
|||
131 | $ hg perfdirstatewrite 2>&1 | filter_perf_output |
|
|||
132 | $ hg perffncacheencode 2>&1 | filter_perf_output |
|
|||
133 | $ hg perffncacheload 2>&1 | filter_perf_output |
|
|||
134 | $ hg perffncachewrite 2>&1 | filter_perf_output |
|
|||
135 | transaction abort! |
|
124 | transaction abort! | |
136 | rollback completed |
|
125 | rollback completed | |
137 | $ hg perfheads 2>&1 | filter_perf_output |
|
126 | $ hg perfheads | |
138 | $ hg perfindex 2>&1 | filter_perf_output |
|
127 | $ hg perfindex | |
139 |
$ hg perfloadmarkers |
|
128 | $ hg perfloadmarkers | |
140 | $ hg perflog 2>&1 | filter_perf_output |
|
129 | $ hg perflog | |
141 | $ hg perflookup 2 2>&1 | filter_perf_output |
|
130 | $ hg perflookup 2 | |
142 | ! result: 20 |
|
131 | $ hg perflrucache | |
143 | $ hg perflrucache 2>&1 | filter_perf_output |
|
132 | $ hg perfmanifest 2 | |
144 | ! init |
|
133 | $ hg perfmergecalculate -r 3 | |
145 | ! gets |
|
134 | $ hg perfmoonwalk | |
146 | ! sets |
|
135 | $ hg perfnodelookup 2 | |
147 | ! mixed |
|
136 | $ hg perfpathcopies 1 2 | |
148 | $ hg perfmanifest 2 2>&1 | filter_perf_output |
|
137 | $ hg perfrawfiles 2 | |
149 | $ hg perfmergecalculate -r 3 2>&1 | filter_perf_output |
|
138 | $ hg perfrevlog .hg/store/data/a.i | |
150 | $ hg perfmoonwalk 2>&1 | filter_perf_output |
|
139 | $ hg perfrevrange | |
151 | $ hg perfnodelookup 2 2>&1 | filter_perf_output |
|
140 | $ hg perfrevset 'all()' | |
152 | $ hg perfpathcopies 1 2 2>&1 | filter_perf_output |
|
141 | $ hg perfstartup | |
153 | $ hg perfrawfiles 2 2>&1 | filter_perf_output |
|
142 | $ hg perfstatus | |
154 | $ hg perfrevlog .hg/store/data/a.i 2>&1 | filter_perf_output |
|
143 | $ hg perftags | |
155 | $ hg perfrevrange 2>&1 | filter_perf_output |
|
144 | $ hg perftemplating | |
156 | $ hg perfrevset 'all()' 2>&1 | filter_perf_output |
|
145 | $ hg perfvolatilesets | |
157 | $ hg perfstartup 2>&1 | filter_perf_output |
|
146 | $ hg perfwalk | |
158 | $ hg perfstatus 2>&1 | filter_perf_output |
|
147 | $ hg perfparents | |
159 | $ hg perftags 2>&1 | filter_perf_output |
|
|||
160 | ! result: 1 |
|
|||
161 | $ hg perftemplating 2>&1 | filter_perf_output |
|
|||
162 | $ hg perfvolatilesets 2>&1 | filter_perf_output |
|
|||
163 | ! bumped |
|
|||
164 | ! divergent |
|
|||
165 | ! extinct |
|
|||
166 | ! obsolete |
|
|||
167 | ! suspended |
|
|||
168 | ! unstable |
|
|||
169 | ! base |
|
|||
170 | ! immutable |
|
|||
171 | ! served |
|
|||
172 | ! visible |
|
|||
173 | $ hg perfwalk 2>&1 | filter_perf_output |
|
|||
174 | ! result: 1 |
|
|||
175 |
|
148 | |||
176 | perf parents needs a bigger repo, use the main repo |
|
|||
177 | $ hg perfparents \ |
|
|||
178 | > --config extensions.perfstatusext=$CONTRIBDIR/perf.py \ |
|
|||
179 | > -R $TESTDIR/.. 2>&1 |grep -v 'obsolete feature' | filter_perf_output |
|
|||
180 |
|
General Comments 0
You need to be logged in to leave comments.
Login now