| 16 | #include "cmSystemTools.h" |
| 17 | |
| 18 | cmMakefileProfilingData::cmMakefileProfilingData( |
| 19 | std::string const& profileStream) |
| 20 | { |
| 21 | std::ios::openmode omode = std::ios::out | std::ios::trunc; |
| 22 | this->ProfileStream.open(profileStream.c_str(), omode); |
| 23 | Json::StreamWriterBuilder wbuilder; |
| 24 | this->JsonWriter = |
| 25 | std::unique_ptr<Json::StreamWriter>(wbuilder.newStreamWriter()); |
| 26 | if (!this->ProfileStream.good()) { |
| 27 | throw std::runtime_error(std::string("Unable to open: ") + profileStream); |
| 28 | } |
| 29 | |
| 30 | this->ProfileStream << "["; |
| 31 | } |
| 32 | |
| 33 | cmMakefileProfilingData::~cmMakefileProfilingData() noexcept |
| 34 | { |
nothing calls this directly
no test coverage detected