| 164 | } |
| 165 | |
| 166 | void PlatformBase::LogInfo() |
| 167 | { |
| 168 | // LOG(Info, "Computer name: {0}", Platform::GetComputerName()); |
| 169 | // LOG(Info, "User name: {0}", Platform::GetUserName()); |
| 170 | |
| 171 | const CPUInfo cpuInfo = Platform::GetCPUInfo(); |
| 172 | LOG(Info, "CPU package count: {0}, Core count: {1}, Logical processors: {2}", cpuInfo.ProcessorPackageCount, cpuInfo.ProcessorCoreCount, cpuInfo.LogicalProcessorCount); |
| 173 | LOG(Info, "CPU Page size: {0}, cache line size: {1} bytes", Utilities::BytesToText(cpuInfo.PageSize), cpuInfo.CacheLineSize); |
| 174 | LOG(Info, "L1 cache: {0}, L2 cache: {1}, L3 cache: {2}", Utilities::BytesToText(cpuInfo.L1CacheSize), Utilities::BytesToText(cpuInfo.L2CacheSize), Utilities::BytesToText(cpuInfo.L3CacheSize)); |
| 175 | LOG(Info, "Clock speed: {0}", Utilities::HertzToText(cpuInfo.ClockSpeed)); |
| 176 | |
| 177 | const MemoryStats memStats = Platform::GetMemoryStats(); |
| 178 | LOG(Info, "Physical Memory: {0} total, {1} used ({2}%)", Utilities::BytesToText(memStats.TotalPhysicalMemory), Utilities::BytesToText(memStats.UsedPhysicalMemory), Utilities::RoundTo2DecimalPlaces((float)memStats.UsedPhysicalMemory * 100.0f / (float)memStats.TotalPhysicalMemory)); |
| 179 | LOG(Info, "Virtual Memory: {0} total, {1} used ({2}%)", Utilities::BytesToText(memStats.TotalVirtualMemory), Utilities::BytesToText(memStats.UsedVirtualMemory), Utilities::RoundTo2DecimalPlaces((float)memStats.UsedVirtualMemory * 100.0f / (float)memStats.TotalVirtualMemory)); |
| 180 | LOG(Info, "Program Size: {0}", Utilities::BytesToText(memStats.ProgramSizeMemory)); |
| 181 | #if !BUILD_RELEASE && !PLATFORM_DESKTOP |
| 182 | LOG(Info, "Extra Development Memory: {0}", Utilities::BytesToText(memStats.ExtraDevelopmentMemory)); |
| 183 | #endif |
| 184 | |
| 185 | LOG(Info, "Main thread id: 0x{0:x}, Process id: {1}", Globals::MainThreadID, Platform::GetCurrentProcessId()); |
| 186 | LOG(Info, "Desktop size: {0}", Platform::GetDesktopSize()); |
| 187 | LOG(Info, "Virtual Desktop size: {0}", Platform::GetVirtualDesktopBounds()); |
| 188 | LOG(Info, "Screen DPI: {0}", Platform::GetDpi()); |
| 189 | } |
| 190 | |
| 191 | void PlatformBase::BeforeRun() |
| 192 | { |
nothing calls this directly
no test coverage detected