@@ -425,9 +425,9 @@ internal void Log(object message, string htmlColour)
425425 Log ( $ "<color={ htmlColour } >{ message } </color>") ;
426426 }
427427
428- internal void LogVariable ( string variableName , object value )
428+ internal void LogVariable ( string variableName , object value , string suffix = "" )
429429 {
430- Log ( $ "{ variableName } : { value } .") ;
430+ Log ( $ "{ variableName } : { value } { suffix } .") ;
431431 }
432432
433433 internal void LogError ( object message )
@@ -1260,6 +1260,43 @@ void logChildren(GameObject obj, int tabAmount)
12601260 ( ) => Log ( $ "Current time: { DateTime . Now } .")
12611261 ) ) ;
12621262
1263+ AddCommand ( Command . Create (
1264+ "sys_info" ,
1265+ "" ,
1266+ "Display system information" ,
1267+ ( ) =>
1268+ {
1269+ LogSeperator ( "System information" ) ;
1270+
1271+ LogVariable ( "Name" , SystemInfo . deviceName ) ;
1272+ LogVariable ( "Model" , SystemInfo . deviceModel ) ;
1273+ LogVariable ( "Type" , SystemInfo . deviceType , SystemInfo . operatingSystemFamily == OperatingSystemFamily . Other ? "" : $ " ({ SystemInfo . operatingSystemFamily } )") ;
1274+ LogVariable ( "OS" , SystemInfo . operatingSystem ) ;
1275+ if ( SystemInfo . batteryLevel != - 1 )
1276+ {
1277+ Log ( $ "Battery status: { SystemInfo . batteryStatus } ({ SystemInfo . batteryLevel * 100f } %).") ;
1278+ }
1279+
1280+ Log ( "" ) ;
1281+
1282+ LogVariable ( "CPU" , SystemInfo . processorType ) ;
1283+ LogVariable ( " Memory size" , SystemInfo . systemMemorySize , " megabytes" ) ;
1284+ LogVariable ( " Processors" , SystemInfo . processorCount ) ;
1285+ LogVariable ( " Frequency" , SystemInfo . processorFrequency , " MHz" ) ;
1286+
1287+ Log ( "" ) ;
1288+
1289+ LogVariable ( "GPU" , SystemInfo . graphicsDeviceName ) ;
1290+ LogVariable ( " Type" , SystemInfo . graphicsDeviceType ) ;
1291+ LogVariable ( " Vendor" , SystemInfo . graphicsDeviceVendor ) ;
1292+ LogVariable ( " Version" , SystemInfo . graphicsDeviceVersion ) ;
1293+ LogVariable ( " Memory size" , SystemInfo . graphicsMemorySize , " megabytes" ) ;
1294+ LogVariable ( " Multi threaded" , SystemInfo . graphicsMultiThreaded ) ;
1295+
1296+ LogSeperator ( ) ;
1297+ }
1298+ ) ) ;
1299+
12631300 #endregion
12641301 }
12651302
0 commit comments