instrumentation: Add model name to static system info

Add this field for consistency with `cmake_host_system_information`
options and data uploaded to CDash.
This commit is contained in:
Tyler Yankee
2026-01-23 17:45:41 -05:00
parent 7b7fcbfbcd
commit 664d6dde4a
3 changed files with 4 additions and 0 deletions

View File

@@ -520,6 +520,7 @@ generated whenever `Indexing`_ occurs and deleted after any user-specified
* ``hostname``
* ``is64Bits``
* ``modelId``
* ``modelName``
* ``numberOfLogicalCPU``
* ``numberOfPhysicalCPU``
* ``processorAPICID``

View File

@@ -475,6 +475,7 @@ void cmInstrumentation::InsertStaticSystemInformation(Json::Value& root)
infoRoot["hostname"] = info.GetHostname();
infoRoot["is64Bits"] = info.Is64Bits();
infoRoot["modelId"] = info.GetModelID();
infoRoot["modelName"] = info.GetModelName();
infoRoot["numberOfLogicalCPU"] = info.GetNumberOfLogicalCPU();
infoRoot["numberOfPhysicalCPU"] = info.GetNumberOfPhysicalCPU();
infoRoot["OSName"] = info.GetOSName();

View File

@@ -98,6 +98,7 @@ if (NOT hasStaticInfo STREQUAL UNEXPECTED)
json_has_key("${index}" "${staticSystemInformation}" hostname ${hasStaticInfo})
json_has_key("${index}" "${staticSystemInformation}" is64Bits ${hasStaticInfo})
json_has_key("${index}" "${staticSystemInformation}" modelId ${hasStaticInfo})
json_has_key("${index}" "${staticSystemInformation}" modelName ${hasStaticInfo})
json_has_key("${index}" "${staticSystemInformation}" numberOfLogicalCPU ${hasStaticInfo})
json_has_key("${index}" "${staticSystemInformation}" numberOfPhysicalCPU ${hasStaticInfo})
json_has_key("${index}" "${staticSystemInformation}" processorAPICID ${hasStaticInfo})
@@ -122,6 +123,7 @@ if (NOT hasStaticInfo STREQUAL UNEXPECTED)
familyId
hostname
modelId
modelName
vendorID
vendorString
)