comparison mercurial/profiling.py @ 34410:fecea78ff2af

configitems: register the 'profiling.showmax' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:43:56 +0200
parents 0407a51b9d8c
children 83dfbda40e67
comparison
equal deleted inserted replaced
34409:7de145167ae7 34410:fecea78ff2af
136 return v 136 return v
137 raise ValueError(s) 137 raise ValueError(s)
138 138
139 if profformat == 'chrome': 139 if profformat == 'chrome':
140 showmin = ui.configwith(fraction, 'profiling', 'showmin', 0.005) 140 showmin = ui.configwith(fraction, 'profiling', 'showmin', 0.005)
141 showmax = ui.configwith(fraction, 'profiling', 'showmax', 0.999) 141 showmax = ui.configwith(fraction, 'profiling', 'showmax')
142 kwargs.update(minthreshold=showmin, maxthreshold=showmax) 142 kwargs.update(minthreshold=showmin, maxthreshold=showmax)
143 elif profformat == 'hotpath': 143 elif profformat == 'hotpath':
144 # inconsistent config: profiling.showmin 144 # inconsistent config: profiling.showmin
145 limit = ui.configwith(fraction, 'profiling', 'showmin', 0.05) 145 limit = ui.configwith(fraction, 'profiling', 'showmin', 0.05)
146 kwargs['limit'] = limit 146 kwargs['limit'] = limit