Compare commits

...

1 Commits

Author SHA1 Message Date
Duraid Abdul 6db60e25b2 Asynchronous System Report 2021-05-31 21:24:23 -07:00
+14 -13
View File
@@ -308,19 +308,20 @@ public class LCManager: NSObject, UIGestureRecognizerDelegate {
}
func systemReport() {
print("Screen Scale: \(UIScreen.main.scale)\n")
print("Screen Size: \(UIScreen.main.bounds.size)")
print("Screen Radius: \(UIScreen.main.value(forKey: "_displayCornerRadius") as! CGFloat)")
print("Max Frame Rate: \(UIScreen.main.maximumFramesPerSecond) Hz")
print("Low Power Mode: \(ProcessInfo.processInfo.isLowPowerModeEnabled)")
print("System Uptime: \(Int(ProcessInfo.processInfo.systemUptime))s")
print("OS Version: \(versionString)")
print("Thermal State: \(thermalState)")
print("Processor Cores: \(Int(ProcessInfo.processInfo.processorCount))")
print("Device RAM: \(round(100 * Double(ProcessInfo.processInfo.physicalMemory) * pow(10, -9)) / 100) GB")
print("Architecture: \(deviceArchitecture)")
print("Model: \(modelIdentifier)")
DispatchQueue.main.async { [self] in
print("Screen Scale: \(UIScreen.main.scale)\n")
print("Screen Size: \(UIScreen.main.bounds.size)")
print("Screen Radius: \(UIScreen.main.value(forKey: "_displayCornerRadius") as! CGFloat)")
print("Max Frame Rate: \(UIScreen.main.maximumFramesPerSecond) Hz")
print("Low Power Mode: \(ProcessInfo.processInfo.isLowPowerModeEnabled)")
print("System Uptime: \(Int(ProcessInfo.processInfo.systemUptime))s")
print("OS Version: \(versionString)")
print("Thermal State: \(thermalState)")
print("Processor Cores: \(Int(ProcessInfo.processInfo.processorCount))")
print("Device RAM: \(round(100 * Double(ProcessInfo.processInfo.physicalMemory) * pow(10, -9)) / 100) GB")
print("Architecture: \(deviceArchitecture)")
print("Model: \(modelIdentifier)")
}
}
var modelIdentifier: String {