in Sources/XCMetricsClient/Hardware Management/HardwareFactsFetcher.swift [65:83]
func fetch() throws -> BuildHost {
var facts = BuildHost()
facts.cpuCount = Int32(self.cpuCount)
facts.cpuModel = self.cpuModel
facts.cpuSpeedGhz = self.cpuSpeedGhz
facts.hostArchitecture = self.hostArchitecture
facts.hostModel = self.hostModel
facts.hostOs = try self.getHostOS()
facts.hostOsFamily = self.hostOSFamily
facts.hostOsVersion = self.hostOSVersion
facts.isVirtual = self.isVirtual
facts.memoryFreeMb = self.memoryFreeMb
facts.memoryTotalMb = self.memoryTotalMb
facts.swapFreeMb = self.swapFreeMb
facts.swapTotalMb = self.swapTotalMb
facts.timezone = self.timeZone
facts.uptimeSeconds = Int64(self.uptimeSeconds)
return facts
}