mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
instrumentation: Use null when CPU load is unknown
This commit is contained in:
@@ -410,13 +410,15 @@ and contain the following data:
|
||||
The Host Memory Used in KiB at ``timeStart``.
|
||||
|
||||
``afterHostMemoryUsed``
|
||||
The Host Memory Used in KiB at ``timeStop``.
|
||||
The Host Memory Used in KiB at ``timeStart + duration``.
|
||||
|
||||
``beforeCPULoadAverage``
|
||||
The Average CPU Load at ``timeStart``.
|
||||
The Average CPU Load at ``timeStart``, or ``null`` if it cannot be
|
||||
determined.
|
||||
|
||||
``afterCPULoadAverage``
|
||||
The Average CPU Load at ``timeStop``.
|
||||
The Average CPU Load at ``timeStart + duration``, or ``null`` if it cannot
|
||||
be determined.
|
||||
|
||||
``configureContent``
|
||||
The path to a :ref:`cmake_instrumentation Configure Content` file located
|
||||
|
||||
@@ -416,7 +416,8 @@ void cmInstrumentation::InsertDynamicSystemInformation(
|
||||
}
|
||||
root["dynamicSystemInformation"][cmStrCat(prefix, "HostMemoryUsed")] =
|
||||
memory;
|
||||
root["dynamicSystemInformation"][cmStrCat(prefix, "CPULoadAverage")] = load;
|
||||
root["dynamicSystemInformation"][cmStrCat(prefix, "CPULoadAverage")] =
|
||||
load > 0 ? Json::Value(load) : Json::nullValue;
|
||||
}
|
||||
|
||||
void cmInstrumentation::GetDynamicSystemInformation(double& memory,
|
||||
|
||||
Reference in New Issue
Block a user