diff options
author | Raul Tambre <raul@tambre.ee> | 2020-03-15 17:14:11 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2020-03-16 12:46:11 (GMT) |
commit | 897af4c26690d4daba5e1e8c516dac6224bb518f (patch) | |
tree | 6c7996cdd3c5ed5a6a96f884c25d549ef7bb0b7e /Source/cmMakefileProfilingData.cxx | |
parent | eb7e8d1529a569a5307653538a13b8c6e8fac9e1 (diff) | |
download | CMake-897af4c26690d4daba5e1e8c516dac6224bb518f.zip CMake-897af4c26690d4daba5e1e8c516dac6224bb518f.tar.gz CMake-897af4c26690d4daba5e1e8c516dac6224bb518f.tar.bz2 |
cmMakefileProfilingData: Fix ambiguous conversion to Json::Value
Diffstat (limited to 'Source/cmMakefileProfilingData.cxx')
-rw-r--r-- | Source/cmMakefileProfilingData.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/cmMakefileProfilingData.cxx b/Source/cmMakefileProfilingData.cxx index ea64132..adf4eee 100644 --- a/Source/cmMakefileProfilingData.cxx +++ b/Source/cmMakefileProfilingData.cxx @@ -3,7 +3,6 @@ #include "cmMakefileProfilingData.h" #include <chrono> -#include <cstdint> #include <stdexcept> #include <vector> @@ -61,9 +60,10 @@ void cmMakefileProfilingData::StartEntry(const cmListFileFunction& lff, v["ph"] = "B"; v["name"] = lff.Name.Original; v["cat"] = "cmake"; - v["ts"] = uint64_t(std::chrono::duration_cast<std::chrono::microseconds>( - std::chrono::steady_clock::now().time_since_epoch()) - .count()); + v["ts"] = Json::Value::UInt64( + std::chrono::duration_cast<std::chrono::microseconds>( + std::chrono::steady_clock::now().time_since_epoch()) + .count()); v["pid"] = static_cast<int>(info.GetProcessId()); v["tid"] = 0; Json::Value argsValue; @@ -98,9 +98,10 @@ void cmMakefileProfilingData::StopEntry() cmsys::SystemInformation info; Json::Value v; v["ph"] = "E"; - v["ts"] = uint64_t(std::chrono::duration_cast<std::chrono::microseconds>( - std::chrono::steady_clock::now().time_since_epoch()) - .count()); + v["ts"] = Json::Value::UInt64( + std::chrono::duration_cast<std::chrono::microseconds>( + std::chrono::steady_clock::now().time_since_epoch()) + .count()); v["pid"] = static_cast<int>(info.GetProcessId()); v["tid"] = 0; this->JsonWriter->write(v, &this->ProfileStream); |