MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / LogInfo

Method LogInfo

Source/Engine/Platform/Base/PlatformBase.cpp:166–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void 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
191void PlatformBase::BeforeRun()
192{

Callers

nothing calls this directly

Calls 4

BytesToTextFunction · 0.85
HertzToTextFunction · 0.85
RoundTo2DecimalPlacesFunction · 0.85
GetDpiFunction · 0.85

Tested by

no test coverage detected