diff options
Diffstat (limited to 'src/buildtool/common/cli.hpp')
-rw-r--r-- | src/buildtool/common/cli.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index a8acea87..26b284d9 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -77,6 +77,7 @@ struct AnalysisArguments { std::vector<std::filesystem::path> graph_file_plain; std::optional<std::filesystem::path> artifacts_to_build_file; std::optional<std::filesystem::path> serve_errors_file; + std::optional<std::string> profile; }; /// \brief Arguments required for describing targets/rules. @@ -345,6 +346,9 @@ static inline auto SetupAnalysisArguments( "File path for dumping the blob identifiers of serve " "errors as json.") ->type_name("PATH"); + app->add_option( + "--profile", clargs->profile, "Location to write the profile to.") + ->type_name("PATH"); if (with_graph) { app->add_option_function<std::string>( "--dump-graph", |