about doc/developers/profiling

John Arbash Meinel john at arbash-meinel.com
Fri Jun 22 16:17:54 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Belchenko wrote:
> I never run bzr with profile options before, but I read
> document about profiling and try:
> 
> E:\work\bzr.dev>bzr --lsprof st
> bzr: ERROR: exceptions.ImportError: No module named _lsprof
> 
> Traceback (most recent call last):
>   File "E:\work\bzr.dev\bzrlib\commands.py", line 717, in run_bzr_catch_errors
>     return run_bzr(argv)
>   File "E:\work\bzr.dev\bzrlib\commands.py", line 674, in run_bzr
>     ret = apply_lsprofiled(opt_lsprof_file, run, *run_argv)
>   File "E:\work\bzr.dev\bzrlib\commands.py", line 536, in apply_lsprofiled
>     from bzrlib.lsprof import profile
>   File "E:\work\bzr.dev\bzrlib\lsprof.py", line 11, in ?
>     from _lsprof import Profiler, profiler_entry
> ImportError: No module named _lsprof
> 
> bzr 0.18.0dev0 on python 2.4.4.final.0 (win32)
> arguments: ['E:\\Python24\\Scripts\\bzr', '--lsprof', 'st']
> 
> ** please send this report to bazaar at lists.ubuntu.com
> 
> 
> As you can see it does not work with Python 2.4.
> Although it works with 2.5. Probably because Python 2.5
> has new built-in cProfile module.
> 
> [µ]

It does, you just have to manually install lsprof.

You can get it from:

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

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGe+giJdeBCYSNAAMRAuodAJ9UsKfMk/UbmP7UNDomL7BYsce4RQCfT4tt
oiyVJ/uDMY+ZGUDqUR8fcRc=
=Emza
-----END PGP SIGNATURE-----



More information about the bazaar mailing list