mercurial/dispatch.py
changeset 18548 e71c2ff93167
parent 18303 4d1671b39168
child 18670 ddc7268da176
--- a/mercurial/dispatch.py	Thu Jan 24 23:57:44 2013 +0100
+++ b/mercurial/dispatch.py	Mon Feb 04 02:46:53 2013 +0100
@@ -748,6 +748,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)
 
     if format not in ['text', 'kcachegrind']:
@@ -776,7 +777,7 @@
             # format == 'text'
             stats = lsprof.Stats(p.getstats())
             stats.sort(field)
-            stats.pprint(limit=30, file=fp, climit=climit)
+            stats.pprint(limit=limit, file=fp, climit=climit)
 
 def statprofile(ui, func, fp):
     try: