Patchwork [2,of,4] configitems: register the 'profiling.showmax' config

login
register
mail settings
Submitter Boris Feld
Date Oct. 1, 2017, 6:32 p.m.
Message ID <5e5cd4ac398ab2d3c5c9.1506882746@FB>
Download mbox | patch
Permalink /patch/24368/
State Accepted
Headers show

Comments

Boris Feld - Oct. 1, 2017, 6:32 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1498787036 -7200
#      Fri Jun 30 03:43:56 2017 +0200
# Node ID 5e5cd4ac398ab2d3c5c964adbf639cc5590fe7c1
# Parent  49eb5157513e5870b1842beb44420d00f334d133
# EXP-Topic config.register.profiling
configitems: register the 'profiling.showmax' config

Patch

diff -r 49eb5157513e -r 5e5cd4ac398a mercurial/configitems.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',
 )
diff -r 49eb5157513e -r 5e5cd4ac398a mercurial/profiling.py
--- 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