Mercurial > public > mercurial-scm > hg
comparison mercurial/lsprof.py @ 16263:be92ddc636e3
profile: add undocumented config options for profiler output
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 15 Mar 2012 15:59:26 -0500 |
parents | b1dcc5ab86cd |
children | a455a18bfdac |
comparison
equal
deleted
inserted
replaced
16262:bf7a6c3b2a4a | 16263:be92ddc636e3 |
---|---|
46 e.inlinetime, label(e.code))) | 46 e.inlinetime, label(e.code))) |
47 count += 1 | 47 count += 1 |
48 if limit is not None and count == limit: | 48 if limit is not None and count == limit: |
49 return | 49 return |
50 ccount = 0 | 50 ccount = 0 |
51 if e.calls: | 51 if climit and e.calls: |
52 for se in e.calls: | 52 for se in e.calls: |
53 file.write(cols % ("+%s" % se.callcount, se.reccallcount, | 53 file.write(cols % ("+%s" % se.callcount, se.reccallcount, |
54 se.totaltime, se.inlinetime, | 54 se.totaltime, se.inlinetime, |
55 "+%s" % label(se.code))) | 55 "+%s" % label(se.code))) |
56 count += 1 | 56 count += 1 |