# HG changeset patch # User Matt Mackall # Date 2015-05-22 17:14:23 # Node ID 0f2dcbccf9c983230b2037f000ce74bf5ba6b7ee # Parent c436ba9d6ac076f1e8f63d40922a5032db4f5f94 profile: disable nested report in lsprof by default The nesting makes profiles harder to read and often pushes important data off the end of the report. diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -898,7 +898,7 @@ def lsprofile(ui, func, fp): format = ui.config('profiling', 'format', default='text') field = ui.config('profiling', 'sort', default='inlinetime') limit = ui.configint('profiling', 'limit', default=30) - climit = ui.configint('profiling', 'nested', default=5) + climit = ui.configint('profiling', 'nested', default=0) if format not in ['text', 'kcachegrind']: ui.warn(_("unrecognized profiling format '%s'"