configitems: register the 'profiling.showmax' config
authorBoris Feld <boris.feld@octobus.net>
Fri, 30 Jun 2017 03:43:56 +0200
changeset 34410 fecea78ff2af
parent 34409 7de145167ae7
child 34411 f5c16e6507e8
configitems: register the 'profiling.showmax' config
mercurial/configitems.py
mercurial/profiling.py
--- a/mercurial/configitems.py	Fri Jun 30 03:43:55 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:43:56 2017 +0200
@@ -338,6 +338,9 @@
 coreconfigitem('profiling', 'output',
     default=None,
 )
+coreconfigitem('profiling', 'showmax',
+    default=0.999,
+)
 coreconfigitem('profiling', 'sort',
     default='inlinetime',
 )
--- a/mercurial/profiling.py	Fri Jun 30 03:43:55 2017 +0200
+++ b/mercurial/profiling.py	Fri Jun 30 03:43:56 2017 +0200
@@ -138,7 +138,7 @@
 
         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