instrumentation: Collect and record project build system metrics

Add a feature for collecting build instrumentation for CMake projects.

Issue: #26099
This commit is contained in:
Martin Duffy
2024-12-11 10:38:47 -05:00
committed by Brad King
parent 8a3c195188
commit 097d4fd1b5
95 changed files with 2331 additions and 66 deletions
+5
View File
@@ -132,6 +132,10 @@ public:
const std::string& GetTarget() const;
void SetTarget(const std::string& target);
/** Set/Get the custom command rolee */
const std::string& GetRole() const;
void SetRole(const std::string& role);
/** Record if the custom command can be used for code generation. */
bool GetCodegen() const { return Codegen; }
void SetCodegen(bool b) { Codegen = b; }
@@ -148,6 +152,7 @@ private:
std::string WorkingDirectory;
std::string Depfile;
std::string JobPool;
std::string Role;
bool JobserverAware = false;
bool HaveComment = false;
bool EscapeAllowMakeVars = false;