summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/main.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-17 15:19:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-20 08:31:28 +0000
commit16bc168084cc7b9a092385dfb02d5efc012bed5b (patch)
treeabd75154e3670b7536b7e7103854bbfbeb01e511 /bitbake/lib/bb/main.py
parent82b5cdad0f8f5a511545b613410895e1a93840a1 (diff)
downloadpoky-16bc168084cc7b9a092385dfb02d5efc012bed5b.tar.gz
bitbake: server: Ensure cooker profiling works
The previous cleanups meant that when the cooker was started, profiling was always disabled as configuration was sent to the server later and this was too late to profile the main loop. Pass the "profile" option over the server commandline so that we can profile cooker itself again, the setting can now take effect early enough. (Bitbake rev: c97c1f1c127ef3f8fbbd1b4e187ab58bfb0a73e5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/main.py')
-rwxr-xr-xbitbake/lib/bb/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py
index 93eda3632e..f56c3d46a2 100755
--- a/bitbake/lib/bb/main.py
+++ b/bitbake/lib/bb/main.py
@@ -429,7 +429,7 @@ def setup_bitbake(configParams, extrafeatures=None):
429 logger.info("Starting bitbake server...") 429 logger.info("Starting bitbake server...")
430 # Clear the event queue since we already displayed messages 430 # Clear the event queue since we already displayed messages
431 bb.event.ui_queue = [] 431 bb.event.ui_queue = []
432 server = bb.server.process.BitBakeServer(lock, sockname, featureset, configParams.server_timeout, configParams.xmlrpcinterface) 432 server = bb.server.process.BitBakeServer(lock, sockname, featureset, configParams.server_timeout, configParams.xmlrpcinterface, configParams.profile)
433 433
434 else: 434 else:
435 logger.info("Reconnecting to bitbake server...") 435 logger.info("Reconnecting to bitbake server...")