Report available memory in startup info

This commit is contained in:
PJB3005
2025-12-14 21:55:58 +01:00
parent 95d5f7eec1
commit e9dc40be24

View File

@@ -17,6 +17,7 @@ internal static class RuntimeInformationPrinter
$".NET Runtime: {RuntimeInformation.FrameworkDescription} {RuntimeInformation.RuntimeIdentifier}",
$"Server GC: {GCSettings.IsServerGC}",
$"Processor: {Environment.ProcessorCount}x {SystemInformation.GetProcessorModel()}",
$"Available Memory: {ByteHelpers.FormatBytes(GC.GetGCMemoryInfo().TotalAvailableMemoryBytes)}",
$"Architecture: {RuntimeInformation.ProcessArchitecture}",
$"Robust Version: {version}",
$"Compile Options: {string.Join(';', GetCompileOptions())}",