| 458 | } |
| 459 | |
| 460 | void 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 | |
| 473 | void cmInstrumentation::InsertStaticSystemInformation(Json::Value& root) |
| 474 | { |
no test coverage detected