# HG changeset patch # User Boris Feld <boris.f...@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
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 _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel