summaryrefslogtreecommitdiffstats
path: root/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 17:55:45 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 18:58:49 -0700
commitd2677f084fe1d8846db77d89ef5e6ffb18dc171a (patch)
tree1d53e5a6557792f05f2101abe505a8be3edb81fb /lib/bb/runqueue.py
parent00c22434123739b0819b31d7b1d353901a3e12da (diff)
downloadbitbake-contrib-d2677f084fe1d8846db77d89ef5e6ffb18dc171a.tar.gz
providers/runqueue/taskdata: Optimise logger.debug calls
A run of "bitbake bash -c unpack" when the task has already been completed resulted in about 9000 calls to logger.debug(). With this patch which comments out some noisy/less usefull logging and moves other logging calls outside loops, this number is reduced to 1000 calls. This results in cleaner logs and gives a small but measurable 0.15s speedup. The log size dropped from 900kb to 160kb. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r--lib/bb/runqueue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 7d3e91a74..c486c988e 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -481,7 +481,7 @@ class RunQueueData:
fn = taskData.fn_index[fnid]
task_deps = self.dataCache.task_deps[fn]
- logger.debug(2, "Processing %s:%s", fn, taskData.tasks_name[task])
+ #logger.debug(2, "Processing %s:%s", fn, taskData.tasks_name[task])
if fnid not in taskData.failed_fnids: