summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_engine/executor/context.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-02-28 12:11:32 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-03-10 16:28:59 +0100
commitcc393dfca1bfd0fdc3fe032df5ea54e12f50cb9d (patch)
treed054d83cbddf11c59cfd8afd233ea006c5746d3e /src/buildtool/execution_engine/executor/context.hpp
parente45883f88fe02906abaee763146aee770e62ef05 (diff)
downloadjustbuild-cc393dfca1bfd0fdc3fe032df5ea54e12f50cb9d.tar.gz
Profiling: start collecting informations per actions
... so far, which actions where considered, and which of those were cached.
Diffstat (limited to 'src/buildtool/execution_engine/executor/context.hpp')
-rw-r--r--src/buildtool/execution_engine/executor/context.hpp4
1 files changed, 4 insertions, 0 deletions
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 <optional>
+
#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<RemoteContext const*> const remote_context;
gsl::not_null<Statistics*> const statistics;
gsl::not_null<Progress*> const progress;
+ std::optional<gsl::not_null<Profile*>> const profile;
};
#endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_ENGINE_EXECUTOR_CONTEXT_HPP