mirror of
https://git.yoctoproject.org/poky
synced 2026-09-16 00:49:32 +02:00
bitbake: Rewrite profiling code so its functional for both none and xmlrpc backends
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -109,9 +109,11 @@ class BitBakeServer():
|
||||
# remove this when you're done with debugging
|
||||
# allow_reuse_address = True
|
||||
|
||||
def __init__(self, cooker):
|
||||
def __init__(self, cooker, pre_serve, post_serve):
|
||||
self._idlefuns = {}
|
||||
self.commands = BitBakeServerCommands(self, cooker)
|
||||
self.pre_serve = pre_serve
|
||||
self.post_serve = post_serve
|
||||
|
||||
def register_idle_function(self, function, data):
|
||||
"""Register a function to be called while the server is idle"""
|
||||
@@ -160,9 +162,17 @@ class BitbakeServerInfo():
|
||||
self.commands = server.commands
|
||||
|
||||
class BitBakeServerFork():
|
||||
def __init__(self, serverinfo, command, logfile):
|
||||
serverinfo.forkCommand = command
|
||||
def __init__(self, cooker, server, serverinfo, logfile):
|
||||
serverinfo.logfile = logfile
|
||||
serverinfo.cooker = cooker
|
||||
serverinfo.server = server
|
||||
|
||||
class BitbakeUILauch():
|
||||
def launch(self, serverinfo, uifunc, *args):
|
||||
serverinfo.server.pre_serve()
|
||||
ret = bb.cooker.server_main(serverinfo.cooker, uifunc, *args)
|
||||
serverinfo.server.post_serve()
|
||||
return ret
|
||||
|
||||
class BitBakeServerConnection():
|
||||
def __init__(self, serverinfo):
|
||||
|
||||
Reference in New Issue
Block a user