From cc393dfca1bfd0fdc3fe032df5ea54e12f50cb9d Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 28 Feb 2025 12:11:32 +0100 Subject: Profiling: start collecting informations per actions ... so far, which actions where considered, and which of those were cached. --- .../graph_traverser/graph_traverser.test.hpp | 30 ++++++++++++++-------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'test/buildtool/graph_traverser/graph_traverser.test.hpp') diff --git a/test/buildtool/graph_traverser/graph_traverser.test.hpp b/test/buildtool/graph_traverser/graph_traverser.test.hpp index b3340ab9..2b10271e 100644 --- a/test/buildtool/graph_traverser/graph_traverser.test.hpp +++ b/test/buildtool/graph_traverser/graph_traverser.test.hpp @@ -201,7 +201,8 @@ class TestProject { .apis = &apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser const gt{ clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}}; @@ -277,7 +278,8 @@ class TestProject { .apis = &apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser const gt{ clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}}; @@ -327,7 +329,8 @@ class TestProject { .apis = &apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser const gt{ clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}}; @@ -393,7 +396,8 @@ class TestProject { .apis = &full_apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser const gt_upload{clargs_update_cpp.gtargs, &full_context, @@ -422,7 +426,8 @@ class TestProject { .apis = &apis_known, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser const gt{ clargs.gtargs, &context_known, [](auto /*done*/, auto /*cv*/) {}}; auto const result = @@ -474,7 +479,8 @@ static void TestBlobsUploadedAndUsed( .apis = &apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser gt{ clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}}; @@ -532,7 +538,8 @@ static void TestEnvironmentVariablesSetAndUsed( .apis = &apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser gt{ clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}}; @@ -590,7 +597,8 @@ static void TestTreesUsed( .apis = &apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser gt{ clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}}; @@ -648,7 +656,8 @@ static void TestNestedTreesUsed( .apis = &apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; GraphTraverser gt{ clargs.gtargs, &exec_context, [](auto /*done*/, auto /*cv*/) {}}; @@ -705,7 +714,8 @@ static void TestFlakyHelloWorldDetected( .apis = &apis, .remote_context = &remote_context, .statistics = &stats, - .progress = &progress}; + .progress = &progress, + .profile = std::nullopt}; { auto clargs = p.CmdLineArgs("_entry_points_ctimes"); -- cgit v1.2.3