~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-13 06:16:27 UTC
  • mfrom: (2493.2.11 bzr.kcachegrind)
  • Revision ID: pqm@pqm.ubuntu.com-20070613061627-xx5xk6q0oxcy1etm
make profiling information easier to view and better documented (Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
540
540
    if filename is None:
541
541
        stats.pprint()
542
542
    else:
543
 
        stats.freeze()
544
 
        cPickle.dump(stats, open(filename, 'w'), 2)
 
543
        stats.save(filename)
545
544
        print 'Profile data written to %r.' % filename
546
545
    return ret
547
546