about doc/developers/profiling

Alexander Belchenko bialix at ukr.net
Fri Jun 22 16:38:19 BST 2007


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

John Arbash Meinel пишет:
> 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

May be it worth to mention about lsprof dependency in document?

[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGe+zrzYr338mxwCURAnjiAJ98thlFUv1T4ErRw+0BPzgExpI4uwCbBFVN
tUI9y1/w/G2oj2STbvinl2M=
=Xn+n
-----END PGP SIGNATURE-----



More information about the bazaar mailing list