Attaching an lsprof output running underneath the forking server. So modules should already be imported at this point. To generate it, I did:
=== modified file 'bzrplugins/lpserve/__init__.py'
--- bzrplugins/lpserve/__init__.py 2011-03-05 23:59:05 +0000
+++ bzrplugins/lpserve/__init__.py 2011-03-23 16:48:16 +0000
@@ -508,6 +508,7 @@
# that would probably only really be measurable if we prefork. As
# it looks like ~200ms is 'fork()' time, but only 50ms is
# run-the-command time.
+ command_argv.extend(('--lsprof-file', 'prof.txt'))
retcode = commands.run_bzr_catch_errors(command_argv) self._close_child_file_descriptors() trace.mutter('%d finished %r'
Attaching an lsprof output running underneath the forking server. So modules should already be imported at this point. To generate it, I did:
=== modified file 'bzrplugins/ lpserve/ __init_ _.py' lpserve/ __init_ _.py 2011-03-05 23:59:05 +0000 lpserve/ __init_ _.py 2011-03-23 16:48:16 +0000 argv.extend( ('--lsprof- file', 'prof.txt')) run_bzr_ catch_errors( command_ argv)
self. _close_ child_file_ descriptors( )
trace. mutter( '%d finished %r'
--- bzrplugins/
+++ bzrplugins/
@@ -508,6 +508,7 @@
# that would probably only really be measurable if we prefork. As
# it looks like ~200ms is 'fork()' time, but only 50ms is
# run-the-command time.
+ command_
retcode = commands.