##// END OF EJS Templates
configitems: register the 'profiling.showmax' config
Boris Feld -
r34411:fecea78f default
parent child Browse files
Show More
@@ -338,6 +338,9 coreconfigitem('profiling', 'nested',
338 coreconfigitem('profiling', 'output',
338 coreconfigitem('profiling', 'output',
339 default=None,
339 default=None,
340 )
340 )
341 coreconfigitem('profiling', 'showmax',
342 default=0.999,
343 )
341 coreconfigitem('profiling', 'sort',
344 coreconfigitem('profiling', 'sort',
342 default='inlinetime',
345 default='inlinetime',
343 )
346 )
@@ -138,7 +138,7 def statprofile(ui, fp):
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
General Comments 0
You need to be logged in to leave comments. Login now