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. --- src/buildtool/execution_engine/executor/context.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/buildtool/execution_engine/executor/context.hpp') diff --git a/src/buildtool/execution_engine/executor/context.hpp b/src/buildtool/execution_engine/executor/context.hpp index 315ab805..cbc2af15 100644 --- a/src/buildtool/execution_engine/executor/context.hpp +++ b/src/buildtool/execution_engine/executor/context.hpp @@ -15,11 +15,14 @@ #ifndef INCLUDED_SRC_BUILDTOOL_EXECUTION_ENGINE_EXECUTOR_CONTEXT_HPP #define INCLUDED_SRC_BUILDTOOL_EXECUTION_ENGINE_EXECUTOR_CONTEXT_HPP +#include + #include "gsl/gsl" #include "src/buildtool/common/repository_config.hpp" #include "src/buildtool/common/statistics.hpp" #include "src/buildtool/execution_api/common/api_bundle.hpp" #include "src/buildtool/execution_api/remote/context.hpp" +#include "src/buildtool/profile/profile.hpp" #include "src/buildtool/progress_reporting/progress.hpp" /// \brief Aggregate to be passed to graph traverser. @@ -30,6 +33,7 @@ struct ExecutionContext final { gsl::not_null const remote_context; gsl::not_null const statistics; gsl::not_null const progress; + std::optional> const profile; }; #endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_ENGINE_EXECUTOR_CONTEXT_HPP -- cgit v1.2.3