mercurial/lsprof.py
changeset 16263 be92ddc636e3
parent 14959 b1dcc5ab86cd
child 16804 a455a18bfdac
--- a/mercurial/lsprof.py	Thu Mar 15 15:58:55 2012 -0500
+++ b/mercurial/lsprof.py	Thu Mar 15 15:59:26 2012 -0500
@@ -48,7 +48,7 @@
             if limit is not None and count == limit:
                 return
             ccount = 0
-            if e.calls:
+            if climit and e.calls:
                 for se in e.calls:
                     file.write(cols % ("+%s" % se.callcount, se.reccallcount,
                                        se.totaltime, se.inlinetime,