diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-27 12:20:29 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-28 12:37:39 +0200 |
commit | ab0599fcbdf25508e0a068edaee7a29aac14af8f (patch) | |
tree | 48f926767ebdbdd7a022ecc72d21357bcc4c7063 /src/buildtool/main | |
parent | 9ea3dbd7a3f80a5813dceb11dea416dc7a01d039 (diff) | |
download | justbuild-ab0599fcbdf25508e0a068edaee7a29aac14af8f.tar.gz |
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.
Diffstat (limited to 'src/buildtool/main')
-rw-r--r-- | src/buildtool/main/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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( |