mercurial/profiling.py
changeset 36400 7b86aa31b004
parent 34412 83dfbda40e67
child 36683 e39953fdd924
equal deleted inserted replaced
36399:a24c57f1f5c3 36400:7b86aa31b004
   141             showmax = ui.configwith(fraction, 'profiling', 'showmax')
   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[r'limit'] = limit
   147 
   147 
   148         statprof.display(fp, data=data, format=displayformat, **kwargs)
   148         statprof.display(fp, data=data, format=displayformat, **kwargs)
   149 
   149 
   150 class profile(object):
   150 class profile(object):
   151     """Start profiling.
   151     """Start profiling.