From 5552540e317a2349840a2c06066f8863193b7091 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 13 Jun 2022 13:30:13 +0200 Subject: Main: Print statistics for export targets --- src/buildtool/main/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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(); -- cgit v1.2.3