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

Method QuerySolarisProcessor

Source/kwsys/SystemInformation.cxx:4941–4965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4939}
4940
4941bool SystemInformationImplementation::QuerySolarisProcessor()
4942{
4943 if (!this->QueryProcessorBySysconf()) {
4944 return false;
4945 }
4946
4947 // Parse values
4948 this->CPUSpeedInMHz = static_cast<float>(
4949 atoi(this->ParseValueFromKStat("-s clock_MHz").c_str()));
4950
4951 // Chip family
4952 this->ChipID.Family = 0;
4953
4954 // Chip Model
4955 this->ChipID.ProcessorName = this->ParseValueFromKStat("-s cpu_type");
4956 this->ChipID.Model = 0;
4957
4958 // Chip Vendor
4959 if (this->ChipID.ProcessorName != "i386") {
4960 this->ChipID.Vendor = "Sun";
4961 this->FindManufacturer();
4962 }
4963
4964 return true;
4965}
4966
4967/** Querying for system information from Haiku OS */
4968bool SystemInformationImplementation::QueryHaikuInfo()

Callers 1

RunCPUCheckMethod · 0.95

Calls 4

ParseValueFromKStatMethod · 0.95
FindManufacturerMethod · 0.95
c_strMethod · 0.80

Tested by

no test coverage detected