From ab0599fcbdf25508e0a068edaee7a29aac14af8f Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 27 May 2025 12:20:29 +0200 Subject: profile: include also the end time of the build ... which might be quite ahead of the end time of the invocation if writing out of the action graph delays the end of the invocation. --- src/buildtool/main/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/buildtool/main/main.cpp') diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 3da6de93..c1b8bcdf 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -1255,6 +1255,9 @@ auto main(int argc, char* argv[]) -> int { std::move(trees), std::move(tree_overlays), std::move(cache_artifacts)); + if (profile != nullptr) { + profile->StopBuild(); + } dump_and_cleanup_thread.join(); if (build_result) { WriteTargetCacheEntries( -- cgit v1.2.3