mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
configitems: register the 'profiling.showmax' config
This commit is contained in:
parent
ebdb3dfa7a
commit
c2d0e63222
@ -338,6 +338,9 @@ coreconfigitem('profiling', 'nested',
|
||||
coreconfigitem('profiling', 'output',
|
||||
default=None,
|
||||
)
|
||||
coreconfigitem('profiling', 'showmax',
|
||||
default=0.999,
|
||||
)
|
||||
coreconfigitem('profiling', 'sort',
|
||||
default='inlinetime',
|
||||
)
|
||||
|
@ -138,7 +138,7 @@ def statprofile(ui, fp):
|
||||
|
||||
if profformat == 'chrome':
|
||||
showmin = ui.configwith(fraction, 'profiling', 'showmin', 0.005)
|
||||
showmax = ui.configwith(fraction, 'profiling', 'showmax', 0.999)
|
||||
showmax = ui.configwith(fraction, 'profiling', 'showmax')
|
||||
kwargs.update(minthreshold=showmin, maxthreshold=showmax)
|
||||
elif profformat == 'hotpath':
|
||||
# inconsistent config: profiling.showmin
|
||||
|
Loading…
Reference in New Issue
Block a user