Mercurial > hg
comparison mercurial/dispatch.py @ 25277:0f2dcbccf9c9
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.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 22 May 2015 12:14:23 -0500 |
parents | 8de7d1d937b3 |
children | 101e84121c13 |
comparison
equal
deleted
inserted
replaced
25276:c436ba9d6ac0 | 25277:0f2dcbccf9c9 |
---|---|
896 | 896 |
897 def lsprofile(ui, func, fp): | 897 def lsprofile(ui, func, fp): |
898 format = ui.config('profiling', 'format', default='text') | 898 format = ui.config('profiling', 'format', default='text') |
899 field = ui.config('profiling', 'sort', default='inlinetime') | 899 field = ui.config('profiling', 'sort', default='inlinetime') |
900 limit = ui.configint('profiling', 'limit', default=30) | 900 limit = ui.configint('profiling', 'limit', default=30) |
901 climit = ui.configint('profiling', 'nested', default=5) | 901 climit = ui.configint('profiling', 'nested', default=0) |
902 | 902 |
903 if format not in ['text', 'kcachegrind']: | 903 if format not in ['text', 'kcachegrind']: |
904 ui.warn(_("unrecognized profiling format '%s'" | 904 ui.warn(_("unrecognized profiling format '%s'" |
905 " - Ignored\n") % format) | 905 " - Ignored\n") % format) |
906 format = 'text' | 906 format = 'text' |