summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-02-28 16:37:10 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-03-01 10:46:54 +0100
commit7dc104bd038ab17a22a9d68b722404edd709efae (patch)
tree91a5b45f68098b400bc5af56d44f3ed5442b7d1c
parent1ef03a1c7043d617885d319b0803d69907c3c9cc (diff)
downloadjustbuild-7dc104bd038ab17a22a9d68b722404edd709efae.tar.gz
Add a message after consolidating the analysis result
On the one hand, this message is after an important step in the build process, to giving the user a better insight into what is going on. On the other hand, the size of the discovered graph is useful information, e.g., when comparing with the number of actions actually traversed when building the requested artifacts.
-rw-r--r--src/buildtool/build_engine/target_map/result_map.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildtool/build_engine/target_map/result_map.hpp b/src/buildtool/build_engine/target_map/result_map.hpp
index 97d2bcf7..ee1a0e0b 100644
--- a/src/buildtool/build_engine/target_map/result_map.hpp
+++ b/src/buildtool/build_engine/target_map/result_map.hpp
@@ -15,6 +15,7 @@
#include "src/buildtool/build_engine/expression/expression.hpp"
#include "src/buildtool/build_engine/target_map/configured_target.hpp"
#include "src/buildtool/common/tree.hpp"
+#include "src/buildtool/logging/logger.hpp"
#include "src/buildtool/multithreading/task.hpp"
#include "src/buildtool/multithreading/task_system.hpp"
#include "src/utils/cpp/hash_combine.hpp"
@@ -224,6 +225,12 @@ class ResultTargetMap {
});
result.actions.erase(lastaction, result.actions.end());
+ Logger::Log(LogLevel::Info,
+ "Discovered {} actions, {} trees, {} blobs",
+ result.actions.size(),
+ result.trees.size(),
+ result.blobs.size());
+
return result;
}