Debugging import times
John Arbash Meinel
john at arbash-meinel.com
Mon May 22 19:53:20 BST 2006
I thought this snippet of code might be useful for other people. It's
basically just an import hook which tracks what is being imported, for
who, and how long it is taking.
It adds the flag '--profile-imports' as a global option. But to make it
truly useful, it is parsed in 'bzr' itself, before anything else is
imported. (I suppose it could be delayed until after it determines that
it is running python2.4
I don't know if we want to add it to regular bzr or not, but it is a
handy knob for what I'm doing.
John
=:->
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: profile-imports.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20060522/211b018c/attachment.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060522/211b018c/attachment.pgp
More information about the bazaar
mailing list