Show More
@@ -307,7 +307,7 b' def _timer(fm, func, title=None, display' | |||
|
307 | 307 | fm.write(prefix + b'comb', b' comb %f', entry[1] + entry[2]) |
|
308 | 308 | fm.write(prefix + b'user', b' user %f', entry[1]) |
|
309 | 309 | fm.write(prefix + b'sys', b' sys %f', entry[2]) |
|
310 |
fm.write(prefix + b'count', b' (%s of %d)' |
|
|
310 | fm.write(prefix + b'count', b' (%s of %%d)' % role, count) | |
|
311 | 311 | fm.plain(b'\n') |
|
312 | 312 | results.sort() |
|
313 | 313 | min_val = results[0] |
@@ -207,6 +207,50 b' detailed output:' | |||
|
207 | 207 | ! wall * comb * user * sys * (avg of *) (glob) |
|
208 | 208 | ! wall * comb * user * sys * (median of *) (glob) |
|
209 | 209 | |
|
210 | test json output | |
|
211 | ---------------- | |
|
212 | ||
|
213 | normal output: | |
|
214 | ||
|
215 | $ hg perfheads --template json --config perf.stub=no | |
|
216 | [ | |
|
217 | { | |
|
218 | "comb": *, (glob) | |
|
219 | "count": *, (glob) | |
|
220 | "sys": *, (glob) | |
|
221 | "user": *, (glob) | |
|
222 | "wall": * (glob) | |
|
223 | } | |
|
224 | ] | |
|
225 | ||
|
226 | detailed output: | |
|
227 | ||
|
228 | $ hg perfheads --template json --config perf.all-timing=yes --config perf.stub=no | |
|
229 | [ | |
|
230 | { | |
|
231 | "avg.comb": *, (glob) | |
|
232 | "avg.count": *, (glob) | |
|
233 | "avg.sys": *, (glob) | |
|
234 | "avg.user": *, (glob) | |
|
235 | "avg.wall": *, (glob) | |
|
236 | "comb": *, (glob) | |
|
237 | "count": *, (glob) | |
|
238 | "max.comb": *, (glob) | |
|
239 | "max.count": *, (glob) | |
|
240 | "max.sys": *, (glob) | |
|
241 | "max.user": *, (glob) | |
|
242 | "max.wall": *, (glob) | |
|
243 | "median.comb": *, (glob) | |
|
244 | "median.count": *, (glob) | |
|
245 | "median.sys": *, (glob) | |
|
246 | "median.user": *, (glob) | |
|
247 | "median.wall": *, (glob) | |
|
248 | "sys": *, (glob) | |
|
249 | "user": *, (glob) | |
|
250 | "wall": * (glob) | |
|
251 | } | |
|
252 | ] | |
|
253 | ||
|
210 | 254 | Check perf.py for historical portability |
|
211 | 255 | ---------------------------------------- |
|
212 | 256 |
General Comments 0
You need to be logged in to leave comments.
Login now