Comment 3 for bug 740759

Revision history for this message
John A Meinel (jameinel) wrote :

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'