~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lsprof.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-16 17:33:27 UTC
  • mfrom: (5755.2.10 2.4-max-entries-gc-602614)
  • Revision ID: pqm@pqm.ubuntu.com-20110516173327-5ehst0ttceohsf5w
(jameinel) Add bzr.groupcompress.max_bytes_to_index to limit peak memory
 when delta-compressing large files (bug #602614) (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
        code = subentry.code
276
276
        totaltime = int(subentry.totaltime * 1000)
277
277
        #out_file.write('cob=%s\n' % (code.co_filename,))
278
 
        out_file.write('cfn=%s\n' % (label(code, True),))
279
278
        if isinstance(code, str):
280
279
            out_file.write('cfi=~\n')
 
280
            out_file.write('cfn=%s\n' % (label(code, True),))
281
281
            out_file.write('calls=%d 0\n' % (subentry.callcount,))
282
282
        else:
283
283
            out_file.write('cfi=%s\n' % (code.co_filename,))
 
284
            out_file.write('cfn=%s\n' % (label(code, True),))
284
285
            out_file.write('calls=%d %d\n' % (
285
286
                subentry.callcount, code.co_firstlineno))
286
287
        out_file.write('%d %d\n' % (lineno, totaltime))