comparison contrib/perf.py @ 50839:cf0502231d56

perf: display all timing by default This is much more useful and end up enable it everywhere. I don't think we have strong backward compatibility guarantee for perf.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 23 Jun 2023 13:27:09 +0200
parents 193a6e9a56f3
children 3ccef7902070
comparison
equal deleted inserted replaced
50838:ee1617c04858 50839:cf0502231d56
454 # experimental config: perf.stub 454 # experimental config: perf.stub
455 if ui.configbool(b"perf", b"stub", False): 455 if ui.configbool(b"perf", b"stub", False):
456 return functools.partial(stub_timer, fm), fm 456 return functools.partial(stub_timer, fm), fm
457 457
458 # experimental config: perf.all-timing 458 # experimental config: perf.all-timing
459 displayall = ui.configbool(b"perf", b"all-timing", False) 459 displayall = ui.configbool(b"perf", b"all-timing", True)
460 460
461 # experimental config: perf.run-limits 461 # experimental config: perf.run-limits
462 limitspec = ui.configlist(b"perf", b"run-limits", []) 462 limitspec = ui.configlist(b"perf", b"run-limits", [])
463 limits = [] 463 limits = []
464 for item in limitspec: 464 for item in limitspec:
3357 3357
3358 ### Compute and display relevant statistics 3358 ### Compute and display relevant statistics
3359 3359
3360 # get a formatter 3360 # get a formatter
3361 fm = ui.formatter(b'perf', opts) 3361 fm = ui.formatter(b'perf', opts)
3362 displayall = ui.configbool(b"perf", b"all-timing", False) 3362 displayall = ui.configbool(b"perf", b"all-timing", True)
3363 3363
3364 # print individual details if requested 3364 # print individual details if requested
3365 if opts['details']: 3365 if opts['details']:
3366 for idx, item in enumerate(results, 1): 3366 for idx, item in enumerate(results, 1):
3367 rev, data = item 3367 rev, data = item