This repository was archived by the owner on Oct 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ internal class MacTelemetryDetails : IPlatformTelemetryDetails
4646 int coreCount ;
4747 long freq ;
4848 string arch ;
49+ string model ;
4950 ulong size ;
5051 ulong freeSize ;
5152
@@ -67,6 +68,7 @@ internal static MacTelemetryDetails CreateTelemetryDetails ()
6768 Interop . SysCtl ( "hw.cpufamily" , out result . family ) ;
6869 Interop . SysCtl ( "hw.cpufrequency" , out result . freq ) ;
6970 Interop . SysCtl ( "hw.physicalcpu" , out result . coreCount ) ;
71+ Interop . SysCtl ( "hw.model" , out result . model ) ;
7072
7173 var attrs = NSFileManager . DefaultManager . GetFileSystemAttributes ( "/" ) ;
7274 result . size = attrs . Size ;
@@ -120,6 +122,8 @@ internal static MacTelemetryDetails CreateTelemetryDetails ()
120122
121123 public string CpuArchitecture => arch ;
122124
125+ public string Model => model ;
126+
123127 public int CpuCount => ( int ) NSProcessInfo . ProcessInfo . ActiveProcessorCount ;
124128
125129 public int PhysicalCpuCount => coreCount ;
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public interface IPlatformTelemetryDetails
5959 GraphicsDetails [ ] GPU { get ; }
6060
6161 string CpuArchitecture { get ; }
62+ string Model { get ; }
6263 int PhysicalCpuCount { get ; }
6364 int CpuCount { get ; }
6465 int CpuFamily { get ; }
You can’t perform that action at this time.
0 commit comments