MCPcopy Create free account
hub / github.com/Kitware/CMake / cmMakefileProfilingData

Method cmMakefileProfilingData

Source/cmMakefileProfilingData.cxx:18–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include "cmSystemTools.h"
17
18cmMakefileProfilingData::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
33cmMakefileProfilingData::~cmMakefileProfilingData() noexcept
34{

Callers

nothing calls this directly

Calls 4

c_strMethod · 0.80
newStreamWriterMethod · 0.80
goodMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected