25 references to GetLogicalCoreCount
Microsoft.Build (6)
BackEnd\Components\Caching\ResultsCache.cs (1)
252capacity => new ConcurrentDictionary<int, BuildResult>(NativeMethodsShared.GetLogicalCoreCount(), capacity));
BackEnd\Components\Scheduler\Scheduler.cs (1)
213_coreLimit = NativeMethodsShared.GetLogicalCoreCount();
BackEnd\Components\SdkResolution\SdkResolverService.cs (1)
537NativeMethodsShared.GetLogicalCoreCount(),
FileMatcher.cs (1)
2576var maxTasks = Math.Max(1, NativeMethodsShared.GetLogicalCoreCount() / 2);
Graph\ProjectGraph.cs (2)
341NativeMethodsShared.GetLogicalCoreCount(), 382NativeMethodsShared.GetLogicalCoreCount(),
Microsoft.Build.CommandLine.UnitTests (1)
XMake_Tests.cs (1)
109parameters[1].ShouldBe(Convert.ToString(NativeMethodsShared.GetLogicalCoreCount()));
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
2835var itemElements = NativeMethodsShared.GetLogicalCoreCount() * 5;
Microsoft.Build.Engine.UnitTests (13)
BackEnd\BuildManager_Tests.cs (1)
4038MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(),
Graph\ParallelWorkSet_Tests.cs (4)
69DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(), 97DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount() 112DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(), 176DegreeOfParallelism = NativeMethodsShared.GetLogicalCoreCount(),
ProjectCache\ProjectCacheTests.cs (8)
663var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount()).ToArray(); 1396MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1452var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1469MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1515var referenceNumbers = Enumerable.Range(2, NativeMethodsShared.GetLogicalCoreCount() * 2).ToArray(); 1529MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount(), 1579var projectPaths = Enumerable.Range(0, NativeMethodsShared.GetLogicalCoreCount()) 1609MaxNodeCount = NativeMethodsShared.GetLogicalCoreCount()
Microsoft.Build.Tasks.Core (2)
Copy.cs (1)
46private static readonly int DefaultCopyParallelism = NativeMethodsShared.GetLogicalCoreCount() > 4 ? 6 : 4;
FileMatcher.cs (1)
2576var maxTasks = Math.Max(1, NativeMethodsShared.GetLogicalCoreCount() / 2);
Microsoft.Build.Utilities.Core (1)
FileMatcher.cs (1)
2576var maxTasks = Math.Max(1, NativeMethodsShared.GetLogicalCoreCount() / 2);
MSBuild (1)
XMake.cs (1)
2088int numberOfCpus = NativeMethodsShared.GetLogicalCoreCount();