1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-02 13:29:49 +00:00

bitbake: toasterui: performance improvements

Improve the performance of data logging in toasterui.
We modify the data queries used to:

 * cache searching in memory
 * insert in bulk (i.e. multiple values per insert, where possible)

On development test rig (networked mysql), on no-op build,
time for data recording is reduced from 4:10 to 1:30 (minutes).

We also improve the logging, so it is easier to detect
toasterui errors.

(Bitbake rev: d42784432f927f58730caf80546c66772e0fec89)

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexandru DAMIAN
2014-11-04 16:47:36 +00:00
committed by Richard Purdie
parent 0ca70ce37a
commit 3e9fc8d091
2 changed files with 156 additions and 61 deletions
+9 -1
View File
@@ -295,9 +295,17 @@ def main(server, eventHandler, params ):
main.shutdown = 1
pass
except Exception as e:
# print errors to log
logger.error(e)
import traceback
traceback.print_exc()
exception_data = traceback.format_exc()
# save them to database, if possible; if it fails, we already logged to console.
try:
buildinfohelper.store_log_error("%s\n%s" % (str(e), exception_data))
except Exception:
pass
pass
if interrupted: