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

Method InsertDynamicSystemInformation

Source/cmInstrumentation.cxx:444–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444void cmInstrumentation::InsertDynamicSystemInformation(
445 Json::Value& root, std::string const& prefix)
446{
447 Json::Value data;
448 double memory;
449 double load;
450 this->GetDynamicSystemInformation(memory, load);
451 if (!root.isMember("dynamicSystemInformation")) {
452 root["dynamicSystemInformation"] = Json::objectValue;
453 }
454 root["dynamicSystemInformation"][cmStrCat(prefix, "HostMemoryUsed")] =
455 memory;
456 root["dynamicSystemInformation"][cmStrCat(prefix, "CPULoadAverage")] =
457 load > 0 ? Json::Value(load) : Json::nullValue;
458}
459
460void cmInstrumentation::GetDynamicSystemInformation(double& memory,
461 double& load)

Callers 3

InstrumentTestMethod · 0.95
GetPreTestStatsMethod · 0.95
InstrumentCommandMethod · 0.95

Calls 4

isMemberMethod · 0.80
cmStrCatFunction · 0.70
ValueClass · 0.70

Tested by

no test coverage detected