~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-22 16:08:25 UTC
  • mfrom: (1551.15.33 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070622160825-17gv0lorkzbr3x76
Note lsprof filename via trace.note, not stdout

Show diffs side-by-side

added added

removed removed

Lines of Context:
534
534
 
535
535
def apply_lsprofiled(filename, the_callable, *args, **kwargs):
536
536
    from bzrlib.lsprof import profile
537
 
    import cPickle
538
537
    ret, stats = profile(the_callable, *args, **kwargs)
539
538
    stats.sort()
540
539
    if filename is None:
541
540
        stats.pprint()
542
541
    else:
543
542
        stats.save(filename)
544
 
        print 'Profile data written to %r.' % filename
 
543
        trace.note('Profile data written to "%s".', filename)
545
544
    return ret
546
545
 
547
546