diff options
| author | Brad King <brad.king@kitware.com> | 2022-10-28 14:03:39 +0000 |
|---|---|---|
| committer | Kitware Robot <kwrobot@kitware.com> | 2022-10-28 10:04:01 -0400 |
| commit | 3469d53b3f9ddabe067044ed2cac92215fbe825c (patch) | |
| tree | c6e67024b901046876630be4e028c47e7f63eb84 /Source/cmake.cxx | |
| parent | 6b27854d268381cb8d29a500caa2ff3b4fe7da3c (diff) | |
| parent | 0fe7aae91f6709c17d2d1b005f7fcac67930ff48 (diff) | |
| download | cmake-3469d53b3f9ddabe067044ed2cac92215fbe825c.tar.gz | |
Merge topic 'extended-profiling'
0fe7aae91f cmake: Add profiling events for configure and generate
3d6a8d7eac cmMakefileProfilingData: Refactor to use RAII
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !7828
Diffstat (limited to 'Source/cmake.cxx')
| -rw-r--r-- | Source/cmake.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index c068894a8d..36c0089ff7 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -2070,6 +2070,10 @@ int cmake::HandleDeleteCacheVariables(const std::string& var) int cmake::Configure() { +#if !defined(CMAKE_BOOTSTRAP) + auto profilingRAII = this->CreateProfilingEntry("project", "configure"); +#endif + DiagLevel diagLevel; if (this->DiagLevels.count("deprecated") == 1) { @@ -2582,6 +2586,11 @@ int cmake::Generate() if (!this->GlobalGenerator) { return -1; } + +#if !defined(CMAKE_BOOTSTRAP) + auto profilingRAII = this->CreateProfilingEntry("project", "generate"); +#endif + if (!this->GlobalGenerator->Compute()) { return -1; } |
