[PATCH] profile: disable nested report in lsprof by default

Matt Mackall mpm at selenic.com
Tue May 26 13:04:59 UTC 2015


# HG changeset patch
# User Matt Mackall <mpm at selenic.com>
# Date 1432314863 18000
#      Fri May 22 12:14:23 2015 -0500
# Node ID 7616c2158b545fa74e5aa0b1d71ac2703417eba1
# Parent  df1801b693ae6647631ba1876608bd0a3d7fd879
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 -r df1801b693ae -r 7616c2158b54 mercurial/dispatch.py
--- a/mercurial/dispatch.py	Tue May 26 06:45:18 2015 -0500
+++ b/mercurial/dispatch.py	Fri May 22 12:14:23 2015 -0500
@@ -898,7 +898,7 @@
     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'"


More information about the Mercurial-devel mailing list