mercurial/profiling.py
changeset 34410 fecea78ff2af
parent 33499 0407a51b9d8c
child 34412 83dfbda40e67
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