~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

Write lsprof file name to stderr, 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