summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-06-13 13:30:13 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2022-06-13 15:55:41 +0200
commit5552540e317a2349840a2c06066f8863193b7091 (patch)
tree8ef9742a0b901c79446b1e6b7b15fed2c82ed749 /src
parente954c001f7243a19c00cbdcf8ed1e5d43a927a96 (diff)
downloadjustbuild-5552540e317a2349840a2c06066f8863193b7091.tar.gz
Main: Print statistics for export targets
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/main/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp
index e6136b90..d522c345 100644
--- a/src/buildtool/main/main.cpp
+++ b/src/buildtool/main/main.cpp
@@ -1423,6 +1423,15 @@ auto main(int argc, char* argv[]) -> int {
Logger::Log(LogLevel::Info,
"Analysed target {}",
result->id.ToString());
+
+ auto const& stat = Statistics::Instance();
+ Logger::Log(LogLevel::Info,
+ "Export targets found: {} cached, {} uncached, "
+ "{} not eligible for caching",
+ stat.ExportsCachedCounter(),
+ stat.ExportsUncachedCounter(),
+ stat.ExportsNotEligibleCounter());
+
ReportTaintedness(*result);
auto const& [actions, blobs, trees] = result_map.ToResult();