re-import lsprof.py

Carl Friedrich Bolz cfbolz at gmx.de
Sat Aug 12 19:29:59 BST 2006


Hi all!

The lsprof.py that is included in bzr lags quite a big behind between
the original file. Is it possible to re-import it? It crashes because of
things that I have in my site.py and this particular bug has been fixed
in the official version. The newest version can be found here:

http://codespeak.net/svn/user/arigo/hack/misc/lsprof/

I also chatted a bit with Armin Rigo (one of the maintainers of lsprof)
and it seems that lsprof.py is a deprecated interface and should be
replaced by the use of cProfile.py, which has the same interface as the
original python profiler. cProfile.py will also be included in
Python2.5, so we should consider using that in bzr.  The setup.py in the
above package installs cProfile.py, so that shouldn't be a problem
either.

Cheers,

Carl Friedrich





More information about the bazaar mailing list