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

Method GetDynamicSystemInformation

Source/cmInstrumentation.cxx:460–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460void cmInstrumentation::GetDynamicSystemInformation(double& memory,
461 double& load)
462{
463 cmsys::SystemInformation& info = this->GetSystemInformation();
464 if (!this->ranSystemChecks) {
465 info.RunCPUCheck();
466 info.RunMemoryCheck();
467 this->ranSystemChecks = true;
468 }
469 memory = (double)info.GetHostMemoryUsed();
470 load = info.GetLoadAverage();
471}
472
473void cmInstrumentation::InsertStaticSystemInformation(Json::Value& root)
474{

Callers 2

InstrumentCommandMethod · 0.95

Calls 5

GetSystemInformationMethod · 0.80
RunCPUCheckMethod · 0.80
RunMemoryCheckMethod · 0.80
GetHostMemoryUsedMethod · 0.80
GetLoadAverageMethod · 0.80

Tested by

no test coverage detected