bitbake: event/msg: Add primitive server side UI log record filtering
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Aug 2013 14:55:21 +0000 (15:55 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Aug 2013 16:29:54 +0000 (17:29 +0100)
commitc8cf5eaf3f15fda5ea0f174a4bbac34617c909ac
tree92a71a5ab7d8d009458ae24c3f29e83e60690733
parent9eaf9d32f65593afa2cac35aaff65167d3681f20
bitbake: event/msg: Add primitive server side UI log record filtering

Currently one of the bigger bottlenecks in bitbake is passing all the
log messages over IPC to the UI. This is worthwhile if the UI is going
to use them, pointless otherwise. The memory resident bitbake suffers
from this performance issue particularly badly.

This patch filters the log events on the server side with the global
log levels and hence reduces the traffic. This speeds up parsing
(18.5s down to 17s) and bitbake general command overhead is reduced
(7.3s for a NOP to 6.2s).

What isn't added here is general event filtering or the ability to
change the log levels once set. Provision is made for adding this
in a follow up patch though.

(Bitbake rev: 1bf0e88f57ba0bca62532e81d0d62cf88e2abcbb)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/event.py
bitbake/lib/bb/msg.py