diff -r bf7a6c3b2a4a -r be92ddc636e3 mercurial/lsprof.py --- 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,