aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/buildgraph/rulenode.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-07-31 11:47:02 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-07-31 16:52:46 +0200
commit885e66e13c7b6eedbda4754989f5fb894ba37e44 (patch)
treeb4527290afc7e75c59262210681511ed48041c11 /src/lib/corelib/buildgraph/rulenode.cpp
parent2231d4966430caa4e1c0d56f0b2c6cd2533e7ba4 (diff)
add trace output for RuleNode::apply
Change-Id: Icbb514d6ec2b13f2660cf86003aea0c6bbd8e132 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'src/lib/corelib/buildgraph/rulenode.cpp')
-rw-r--r--src/lib/corelib/buildgraph/rulenode.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/rulenode.cpp b/src/lib/corelib/buildgraph/rulenode.cpp
index 3ea324238..4bf027bfa 100644
--- a/src/lib/corelib/buildgraph/rulenode.cpp
+++ b/src/lib/corelib/buildgraph/rulenode.cpp
@@ -70,6 +70,17 @@ void RuleNode::apply(const Logger &logger, const ArtifactSet &changedInputs,
const ArtifactSet removedInputs = m_oldInputArtifacts - allCompatibleInputs;
result->upToDate = changedInputs.isEmpty() && addedInputs.isEmpty() && removedInputs.isEmpty();
+ if (logger.traceEnabled()) {
+ logger.qbsTrace()
+ << "[BG] consider " << (m_rule->isDynamic() ? "dynamic " : "")
+ << (m_rule->multiplex ? "multiplex " : "")
+ << "rule node " << m_rule->toString()
+ << "\n\tchanged: " << changedInputs.toString()
+ << "\n\tcompatible: " << allCompatibleInputs.toString()
+ << "\n\tadded: " << addedInputs.toString()
+ << "\n\tremoved: " << removedInputs.toString();
+ }
+
ArtifactSet inputs = changedInputs;
if (product->isMarkedForReapplication(m_rule)) {
QBS_CHECK(m_rule->multiplex);