diff options
author | Brad King <brad.king@kitware.com> | 2020-01-24 14:19:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-01-24 14:19:55 (GMT) |
commit | 816bbf227f8cbfb37115af5ea93be436ab8f2059 (patch) | |
tree | 34bf15f34815e904fc426bf6f5eda0e28403e4f6 /Source/cmMakefile.cxx | |
parent | 89a93348d514ff8c4233d8e25ebe2ff65e26c446 (diff) | |
parent | c829f0cfcaa4753743fde1900091e1233c41350b (diff) | |
download | CMake-816bbf227f8cbfb37115af5ea93be436ab8f2059.zip CMake-816bbf227f8cbfb37115af5ea93be436ab8f2059.tar.gz CMake-816bbf227f8cbfb37115af5ea93be436ab8f2059.tar.bz2 |
Merge topic 'trace_json_timestamp'
c829f0cfca trace: Add time and stack level to JSON output format
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Volo Zyko <volo.zyko@gmail.com>
Merge-request: !4242
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 668a27d..59995be 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -340,6 +340,9 @@ void cmMakefile::PrintCommandTrace(const cmListFileFunction& lff) const for (std::string const& arg : args) { val["args"].append(arg); } + val["time"] = cmSystemTools::GetTime(); + val["frame"] = + static_cast<std::uint64_t>(this->ExecutionStatusStack.size()); msg << Json::writeString(builder, val); #endif break; |